登录
首页 » matlab » fractal-use

fractal-use

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

  • 1
    说明:  Canny Edge Detector Algorithm and Matlab Codes
    2009-03-13 13:55:46下载
    积分:1
  • PCM
    pulse code modulation using u-Law
    2013-12-04 19:45:33下载
    积分:1
  • harjiaodianjiance
    说明:  用MATLAB实现Harris图像的边缘检测(Harris,MATLAB)
    2010-03-16 16:39:47下载
    积分:1
  • leachimprove
    无线传感器网络leach协议,在matlab上的改进算法,考虑了能量(Leach protocol of wireless sensor networks, the improved algorithm in matlab, taking into account energy)
    2012-03-28 13:12:55下载
    积分:1
  • lle123
    流行算法中的局部线性嵌入算法,标准算法,值得下载,很好用(Local linear embedding algorithm of popular algorithms, standard algorithm, is worth to download, very useful)
    2014-12-27 15:15:17下载
    积分:1
  • fuzzPID
    模糊PID程序,可以实现高斯/三角/梯形模糊PID算法(Fuzzy PID program, you can achieve Gauss/triangle/trapezoid fuzzy PID algorithm)
    2015-03-19 16:01:25下载
    积分:1
  • 二阶一领导四跟随
    说明:  二阶一领导者多智能体一致性。可用来入门学习一致性(Second order one leader multi-agent consistency. It can be used to learn consistency)
    2021-03-11 22:33:23下载
    积分:1
  • M-Files
    有限元程序的matlab工具包,用于各种不同有限单元的划分,力和响应的计算等(Matlab finite element procedure kits for a variety of finite element division and the calculation of response)
    2009-04-04 13:51:14下载
    积分:1
  • fskd
    MATLAB通信原理FSK调制源代码文件(Communication Theory FSK modulation MATLAB source code files)
    2010-01-14 12:45:44下载
    积分:1
  • exp_equal
    实现超指数盲均衡算法,隐含了信号的高阶累积量信息 (realize the SEI equalization algorithm and uses the high order cumulates of signals)
    2013-03-19 12:24:01下载
    积分:1
  • 696518资源总数
  • 105877会员总数
  • 14今日下载