mandelbrot, a MATLAB code which generates an image of the Mandelbrot set.
The Mandelbrot set is a set of points C in the complex plane with the property that the iteration
z(n+1) = z(n)^2 + cremains bounded.
All the points in the Mandelbrot set are known to lie within the circle of radius 2 and center at the origin.
To make a plot of the Mandelbrot set, one starts with a given point C and carries out the iteration for a fixed number of steps. If the iterates never exceed 2 in magnitude, the point C is taken to be a member of the Mandelbrot set.
mandelbrot ( m, n, count_max )where
The computer code and data files described and made available on this web page are distributed under the MIT license
mandelbrot is available in a C version and a C++ version and a FORTRAN90 version and a MATLAB version and a Python version.
fern, a MATLAB code which uses MATLAB graphics to display the Barnsley fractal fern.