登录
首页 » matlab » fractal-use

fractal-use

于 2013-03-02 发布 文件大小:43KB
0 132
下载积分: 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 个回复

  • GAPLL
    ga的一个仿真例子程序,还不错,用起来效果比较好,需要自己根据项目情况写适应度函数(ga a simulation example of the procedure, but also good to use effect is better, the basis of project information required to write their own fitness function)
    2009-02-16 18:21:33下载
    积分:1
  • kalman
    Kalman Filtering Theory and Practice, Using MATLAB
    2007-09-21 14:33:27下载
    积分:1
  • MATLAB1
    利用MATLAB进行图象重建的算法研究,MATLAB在无损探测领域的应用(The use of MATLAB for image reconstruction algorithm, MATLAB in the field of application of non-destructive detection)
    2007-09-13 13:46:34下载
    积分:1
  • ultrasim07
    ULTRSIM是一款超声图像仿真软件,可以作为超声图像仿真研究的工具,附有matlab代码(ULTRSIM is an ultrasound image simulation software can be used as a tool for simulation of ultrasonic images)
    2009-09-07 13:39:56下载
    积分:1
  • histo_Y_100000
    enjoy matlab histogram ploting
    2009-04-01 11:20:51下载
    积分:1
  • AppliedNonlinearControlSlotine11
    Applied Nonlinear Control
    2010-07-13 21:51:07下载
    积分:1
  • gonglvpuguji
    对噪声及信号的功率谱估计,生物医学信号处理,matlab编程实现(Of noise and signal power spectrum estimation, biomedical signal processing, matlab Programming)
    2008-01-13 08:10:15下载
    积分:1
  • matlabbook
    MATLAB书籍7本,主要是基础的,其中MIT的很不错,每本书都有实例(MATLAB book seven, mainly based on, in which MIT is very good, there are examples of each book)
    2009-02-03 16:48:52下载
    积分:1
  • matlab2010asetup
    matlab2010A,内含安装key和授权文件,安装攻略。(2010a setup and the keys)
    2010-07-07 10:06:47下载
    积分:1
  • goldseq
    Gold sequence generation in matlab
    2009-04-18 14:20:37下载
    积分:1
  • 696518资源总数
  • 104684会员总数
  • 30今日下载