mandel.m

Colored plot of the Mandelbrot set or parts of it.
1.9K Downloads
Updated 23 Feb 2005

No License

This simple m-File provides the beautiful nature of the Mandelbrot set (as well as its incredible deep structure).

Type "help mandel" in your MATLAB command window to get the following description:

MANDEL Draws the Mandelbrot set. MANDEL(x1,x2,y1,y2,r,n,s,it) draws the Mandelbrot set in the region
R = [x1,x2] x i [y1,y2].
The number n defines a grid in R with n^2 points.
The number it denotes the number of iterations
z -> z^r + c
taken by MANDEL.
The result is better for large values of n and it.

MANDEL does not draw each iteration, but only each s-th iteration. A good choice is 5 <= s <= 10.

You may start with x1 = -2, x2 = 1, y1 = -1.2, y2 = 1.2 and then "zoom in" by just specifing the new region with the cursor in the current figure.

Cite As

Norbert Hilber (2024). mandel.m (https://www.mathworks.com/matlabcentral/fileexchange/6968-mandel-m), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13SP1
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Fractals in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0