image thumbnail

Mandelbrot set vectorized

version (2.78 KB) by Lucio Cetto
Produces the Mandelbrot set using vectorized code.


Updated 02 Jun 2004

View License

Produces the Mandelbrot set, as other user contributed "m" files, but this submission is VECTORIZED, achieving a speedup of approx 2.5 against a traditional implementation (which is optimized by the JIT). In the past (6.0), a vectorized implementation would achieve speedups up to 100 times faster, this is no longer true.
This is a very instructive example of how to vectorize nested loops.

When being used in interactive mode you can zoom into a region of interest and launch again the computation with a GUI push-button.

Cite As

Lucio Cetto (2022). Mandelbrot set vectorized (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!