File Exchange

image thumbnail

A GPU Mandelbrot Set

version 1.7.0.2 (171 KB) by Ben Tordoff
Explore the Mandelbrot Set using MATLAB and a GPU.

20 Downloads

Updated 06 May 2019

View License

This application allows you to explore the wonders of the Mandelbrot Set in MATLAB with the help of a capable GPU. It is primarily intended as a demonstration of the different ways in which a MATLAB algorithm can be converted to run on the GPU, however it also has some fun features:
* Use the normal MATLAB zoom and pan to browse the Mandelbrot Set
* Sit back and watch the app pan and zoom between pre-stored locations in the set
* Add your own locations to the animation list
Three different ways of speeding up the algorithm using GPU hardware are provided along with a normal CPU-only version. Have a look at the code for these to get a feeling for how MATLAB's GPU support works.

See also the related "GPU Julia Set Explorer": http://www.mathworks.com/matlabcentral/fileexchange/33201

NB: Requires MATLAB R2012a or above with Parallel Computing Toolbox and a GPU with CUDA Compute Capability 1.3 or above.

Cite As

Ben Tordoff (2019). A GPU Mandelbrot Set (https://www.mathworks.com/matlabcentral/fileexchange/30988-a-gpu-mandelbrot-set), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (8)

Sergio Sanz

Using Add-On Explorer on R2019-a to download and install, and got an error message:"Error using mandelbrotViewer/gpuCheck (line 585)
mandelbrotViewer requires a GPU and none appear to be
availble. Type "gpuDevice" for more information.
Error in mandelbrotViewer (line 48)
gpuCheck(); ". I have an Laptop with Intel HD Graphics 620, 16 GB RAM, i7 7500U CPU @2.70GHz. I can't believe with this hardware is not possible to run this application.

Teodo

Shahab

App download did not work for me. The install was not complete. Also downloaded the files and updated the app download folder. Work great after that.

Reed

great animated experience. fun demonstration of the set and gpu capability. FYI, the app installation didn't completely work for me. It left out most of the .m files and I had to download the .zip and copy and paste them into where the app installer put the other files. Maybe the app package is missing some files?

Christopher

Ohad

Updates

1.7.0.2

Make robust to zero or non-integer axes sizes. Add app icon.

1.7.0.1

Updated license

1.7.0.0

Fix compatibility with R2014b

1.6.0.0

* Updated to use new "gpuArray" names for build functions.
* MATLAB App included for ease of installation/removal.

1.5.0.0

* Add animation button to toolbar
* Fix display freeze when toggling control panel on/off

1.4.0.0

* Fix warnings when animating with an odd window size
* Guard against the window closing to prevent an error when exiting

1.3.0.0

Add Julia Set link to description.

1.2.0.0

Fix incorrect required MATLAB version (requires R2011a, not R2010b)

MATLAB Release Compatibility
Created with R2012a
Compatible with R2011a to any release
Platform Compatibility
Windows macOS Linux

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.


Learn About Live Editor