分形树生成基于IFS分形树我要分享

Fractal tree generation based on IFS fractal tree

matlab ifs 基于 生成

关注次数: 265

下载次数: 0

文件大小: 1.11 kB

代码分类: 其他

开发平台: matlab

下载需要积分: 2积分

版权声明:如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

代码描述

中文说明:应用背景%的IFS(n,旗)由 构造分形图;%的原则(IFS迭代函数系统)。%%它情节N单点根据变换这是随机选择的一组固定的变换。关键技术%集由标志值的确定:%旗= 0结果在Sierpinski三角形;%旗= 1绘制科赫曲线;%旗= 2显示一个分形树;%旗= 3返回一个分形farn叶;%否则圣诞树的构造。%%的IFS(N)得出N点电场叶。%% IFS绘制与N = 500000点farn叶。


English Description:

Application background% IFS(N, FLAG) constructs a fractal picture by the  % principle of a IFS (iterated function systems). % % It plots N single points according to a transformation % which is chosen randomly of a fixed set of transformations. Key Technology% The set is determined by the value of flag: % flag = 0 results in the Sierpinski triangle; % flag = 1 draws the Koch curve; % flag = 2 shows a fractal tree; % flag = 3 returns a fractal farn leaf; % otherwise a christmas tree is constructed. % % IFS(N) draws the farn leaf with N points. % % IFS draws the farn leaf with N = 500000 points.


代码预览