File Exchange

image thumbnail

GPU Fractal Explorer

version 1.1 (169 KB) by Ben Tordoff
View and investigate various fractals using MATLAB and an NVIDIA GPU


Updated 23 Apr 2021

From GitHub

View Version History

View license on GitHub

This application allows you to explore several different fractals in MATLAB with the help of a capable NVIDIA GPU. It was inspired by Cleve Moler's article GPU Enables Obsession with Fractals, where each fractal has the common pattern that every location (i.e. pixel in the resulting image) can be calculated independently. This makes them trivially parallel and eminently suitable for acceleration on the GPU using the gpuArray/arrayfun feature.

The following fractals are included:

* Burning Ship: Mandelbrot-like iteration with update function (|Re(z)|+i|Im(z)|)^2
* Mandelbrot: The classic Mandelbrot set
* Mandelbar: A Mandelbrot variant using a conjugating update
* Mandelbrot 11: A Mandelbrot variant using ^11 instead of ^2.
* Newton's Method (cubic): Iterations to convergence of Newton's method for the function x.^3 - 2.*x - 5
* Newton's Method (trig): Iterations to convergence of Newton's method for the function tan(sin(x)) - sin(tan(x))
* Tower of Powers: Cycle count for y(k+1) = z^y(k)

This app is provided purely for your entertainment, but has the following features:
* Use the normal MATLAB zoom and pan to browse each fractal
* Quickly switch between fractals
* Sit back and watch the app pan and zoom between pre-stored locations for each fractal
* Add your own locations to the animation lists

You might also be interested in my other GPU fractal apps:
* A GPU Mandelbrot Set:
* GPU Julia Set Explorer:

Cite As

Ben Tordoff (2021). GPU Fractal Explorer (, GitHub. Retrieved .

Comments and Ratings (0)

MATLAB Release Compatibility
Created with R2020b
Compatible with R2016b and later releases
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Inspired by: A GPU Mandelbrot Set

Community Treasure Hunt

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

Start Hunting!