Fractal generator

Function to generate fractal structures Excellent for educational demonstrations.
ダウンロード: 1.2K
更新 2009/11/18

ライセンスの表示

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.

引用

Jakob Laugesen (2024). Fractal generator (https://www.mathworks.com/matlabcentral/fileexchange/25892-fractal-generator), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2008a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersFractals についてさらに検索
謝辞

ヒントを与えたファイル: patternMaker( numSides, numPoints, stepFraction, randSeed )

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0