登录
首页 » matlab » fractal-use

fractal-use

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

  • QPSK_1
    Matlab QPSK, testing QPKS code
    2010-11-24 01:42:55下载
    积分:1
  • DES
    DES算法的加解密程序,MATLAB实现,还有实验报告一并附上。(DES algorithm encryption and decryption procedures, MATLAB implementation, the key length can only be eight.)
    2012-06-02 17:47:27下载
    积分:1
  • Mathematical-modeling
    数学建模的基础知识和简介,简单易懂,清晰明了,比较简单(A brief introduction about the basic knowledge of mathematical modeling and, simple, clear and simple)
    2014-12-09 15:57:37下载
    积分:1
  • rwt
    这是一个小波包,里面有很多关于小波函数的东西(This is a wavelet package with lots of things about wavelet functions.)
    2020-11-06 09:59:49下载
    积分:1
  • CAMP
    说明:  CAMP算法,一种压缩感知算法,可以实现复数矩阵形式的快速处理。给出了相应的文献。(CAMP algorithm, a compressed sensing algorithm, can achieve fast processing in the form of complex matrix. The corresponding literature is given.)
    2021-01-01 23:37:26下载
    积分:1
  • hopfieldNetwork
    This code is hopfield neural network. However, not my work
    2009-04-28 02:03:57下载
    积分:1
  • circ_array
    雷达天线————圆形阵列边界的矩形网格天线增益方向图( a rectangular grid array antenna gain pattern of Circular boundary )
    2011-05-10 18:06:25下载
    积分:1
  • dimats
    二色散射模型去雾算法,以及深度图的获取,效果较好(Dichroic scattering model to fog algorithms, as well as the acquisition of the depth map, the better)
    2013-01-17 20:02:20下载
    积分:1
  • matlab-pinpu-fenxi
    matlab 进行频谱分析。时域转换频域进行分析。(matlab frequency analytic)
    2013-09-28 15:35:35下载
    积分:1
  • B
    说明:  gui for matlab palm print recognition
    2015-04-13 06:43:43下载
    积分:1
  • 696516资源总数
  • 106562会员总数
  • 4今日下载