Code covered by the BSD License  

Highlights from
Fractal generator

Be the first to rate this file! 7 Downloads (last 30 days) File Size: 3.06 KB File ID: #25892
image thumbnail

Fractal generator

by Jakob Laugesen

 

18 Nov 2009

Function to generate fractal structures Excellent for educational demonstrations.

| Watch this File

File Information
Description

Based on axioms and generators the function generates fractal structures of a specified level and one of the predefined geometries (Sierpinski's triangle and pyramide and Menger's sponge).

Works in two ways: 1) Generation of one of the three
predefined geometries or 2) Alternative the axiom and generator coordinates may be specified to generate other fractal than those predefined.

Usage (for predefined use):
fractal(N,s);
where N is the level and s=1/2/3

Examples:
fractal(2,1); % show the Sierpinski's triangle with 2 levels.
fractal(0,3); % show the axiom of the Menger's sponge.
fractal(1,3); % show the generator of the Menger's sponge.

MATLAB release MATLAB 7.6 (R2008a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
fractal Jakob Laugesen 19 Nov 2009 10:05:16
sierpinski Jakob Laugesen 19 Nov 2009 10:05:16
menger Jakob Laugesen 19 Nov 2009 10:05:16
self similarity Jakob Laugesen 19 Nov 2009 10:05:16

Contact us at files@mathworks.com