Mandelbrot set vectorized

Produces the Mandelbrot set using vectorized code.

You are now following this Submission

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 (2026). Mandelbrot set vectorized (https://www.mathworks.com/matlabcentral/fileexchange/1329-mandelbrot-set-vectorized), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Fractals in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0

Updating for R14