登录
首页 » matlab » fractal-use

fractal-use

于 2013-03-02 发布 文件大小:43KB
0 255
下载积分: 1 下载次数: 4

代码说明:

  分形的练习一 ①Koch曲线 用复数的方法来迭代Koch曲线 clear i 防止i被重新赋值 A=[0 1] 初始A是连接(0,0)与(1,0)的线段 t=exp(i*pi/3) n=2 n是迭代次数 for j=0:n A=A/3 a=ones(1,2*4^j) A=[A (t*A+a/3) (A/t+(1/2+sqrt(3)/6*i)*a) A+2/3*a] end plot(real(A),imag(A)) axis([0 1 -0.1 0.8]) ②Sierpinski三角形 A=[0 1 0.5 0 0 1] 初始化A n=3 迭代次数 for i=1:n A=A/2 b=zeros(1,3^i) c=ones(1,3^i)/2 A=[A A+[c b] A+[c/2 c]] end for i=1:3^n patch(A(1,3*i-2:3*i),A(2,3*i-2:3*i), b ) patch填充函数 end (Fractal Exercise One The ① Koch curve Plural iteration Koch curve clear i to prevent i is reassigned A = [0 1] initial A is a connection (0,0) and (1,0) of the segments t = exp (i* pi/3) n = 2 n is the number of iterations for j = 0: n A = A/3 a = ones (1,2* 4 ^ j) A = [A (t* A+ a/3) (A/t+ (1/2+ sqrt (3)/6* i)* a) A+2/3* a] end plot (real (A), imag (A)) axis ([0 1-0.1 0.8])   ② Sierpinski triangle A = [0 1 0.5 0 0 1] initialized A n = 3 the number of iterations. for i = 1: n A = A/2 b = zeros (1,3 ^ i) c = ones (1,3 ^ i)/2 A = [A A+ [c b] A+ [c/2 c]] end for i = 1:3 ^ n patch (A (1,3* i-2: 3* i), A (2,3* i-2: 3* i), b ) patch filled function end)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • GPC
    多变量广义预测的控制算法MATLAB代码(Multivariable generalized predictive control algorithm MATLAB code)
    2020-11-19 20:09:37下载
    积分:1
  • q
    说明:  三篇关于MATLAB,模糊PID控制,液位控制与仿真的文章(3 on MATLAB, Fuzzy PID control, level control and simulation of the article)
    2010-05-28 21:10:54下载
    积分:1
  • cart
    classification and regression tree算法的python实现以及相关实验数据(machine learning classification and regression tree)
    2015-02-07 12:28:22下载
    积分:1
  • autoperiodicity
    用于对周期性的数据趋势进行评估与分析,特别适用于具有某个周期的数据组。(For periodic assessment of the data and trend analysis, especially for data having a certain set period.)
    2014-01-26 21:30:48下载
    积分:1
  • hafuline
    在matlab中,Soble算子检测边缘,并保存原图中每个像素相对应的梯度模长和方位角,然后进行边缘连接(In matlab, Soble edge detection operator, and save the original image corresponding to each pixel in length and azimuth gradient mode, then the edge connector)
    2013-12-23 20:43:17下载
    积分:1
  • pls2
    PLS算法 采用归一化 拟合更好的非线性迭代偏最小二乘法(NIPALS)(PLS algorithm using normalized fitting better nonlinear iterative partial least squares (NIPALS) )
    2013-08-12 10:20:27下载
    积分:1
  • convolution
    convolution_ different methods.. circular n linear covolution included
    2014-02-09 13:34:33下载
    积分:1
  • Matlab6.0
    主要面向工程设计人员,涉及的知识不但包括软件应用,还包括专业基础知识,是机械,电子领域技术人员的最佳参考书(Primarily for engineers, the knowledge involved, including not only software applications, including professional knowledge, machinery, electronics technicians the best reference books)
    2010-07-30 21:31:16下载
    积分:1
  • PCA-tutorial
    A tutorial on Principal Components Analysis
    2013-10-01 18:59:31下载
    积分:1
  • KELI
    二维不规则颗粒随机分布模型的MATLAB程序,变形颗粒试件创建程序。(Deformation particle test procedure)
    2020-11-24 09:49:32下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载