Generic Fractal Generator

版本 1.1.0.0 (2.9 KB) 作者: Yavor Kamer
Generates a multi/monofractal point distribution from user supplied or build-in template matrix.
942.0 次下载
更新时间 2015/5/6

查看许可证

A generic multi/monofractal generator. Uses build-in or user supplied template matrices to recursively generate fractal point distributions. The template matrix should be of size [n,n,1] for 2D fractals and [n,n,n] for 3D fractals. If the matrix elements consist of 0s and 1s the resulting distribution will be a monofractal. If there are elements >1 then the result is a multifractal point distribution. Multifractality is handled by iteratively fracturing masses >1 and then randomly sampling the obtained PDF. The main fracturing function is parallelized with parfor.
Example 1: Generate a regular Merger Sponge fractal
pts_mat = fracGen('Menger3D');

Example 2: Generate a random 3D monofractal with D=1.58, sampled by 1000 points
mat_p1 = [0 1; 0 0];
mat_p1(:,:,2) = [1 0; 1 0];
pts_mat = fracGen(mat_p1,1,1000);

引用格式

Yavor Kamer (2024). Generic Fractal Generator (https://www.mathworks.com/matlabcentral/fileexchange/50664-generic-fractal-generator), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2011a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Fractals 的更多信息
致谢

参考作品: randp

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.1.0.0

fixed a bug in the varargin parsing

1.0.0.0