登录
首页 » matlab » fractal-use

fractal-use

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

  • pca_ann
    face recognition using pca and ann wih training and testing and validation privided for ORL databases
    2009-04-04 22:15:10下载
    积分:1
  • CopyObject
    Boosector file ke infor wich is imprtant
    2010-09-20 09:30:50下载
    积分:1
  • nodiversity
    无线通信多输入多输出(MIMO)系统的仿真程序。包括程序解释和源代码(wireless communications multiple-input multiple-output (MIMO) systems simulation program. The procedures and explain the source code.)
    2012-05-01 11:24:27下载
    积分:1
  • bulangyundong2
    matlab 程实 实现布朗运动 源程序(matlab source Brownian motion process to achieve real)
    2011-08-02 11:27:16下载
    积分:1
  • diaoyongjubing
    刘金坤的程序,很有用,谁下谁知道,不信你试试(How to change the oscilloscope in simulink inside wave, see this call handle applications)
    2011-12-13 15:01:39下载
    积分:1
  • Spectral-Methods-in-MATLAB
    matlab频谱分析,包括傅里叶变换等基础知识,供大家下载学习,(matlab spectral analysis, including Fourier transform basic knowledge for everyone to download the study,)
    2013-12-28 22:15:26下载
    积分:1
  • lag
    如何使用MATLAB编程,里面有详细的说明,大家可以试试。满好的教程(How to use the MATLAB programming, which is described in detail, we can try. Man good tutorial)
    2007-11-07 09:02:27下载
    积分:1
  • xianxingfangchengzu
    说明:  本代码是GAUSS-SEIDEL迭代法、选主元JORDAN消去法、简单GAUSS消去法、选主元GAUSS消去法的MATLAB程序,有详细注释,可直接调用(This code is GAUSS-SEIDEL iteration, pivoting JORDAN elimination, simple GAUSS elimination, pivoting GAUSS elimination of the MATLAB program, with detailed notes, can be called directly)
    2010-04-27 16:35:44下载
    积分:1
  • SER_gai2
    两个频率的凹口滤波的干扰对消噪声,采用了SER算法,可以和LMS算法来做比较。(Filtering the interference of the two frequencies of the recess on the noise-cancellation of the SER algorithm, and the LMS algorithm for comparison.)
    2013-03-10 19:05:03下载
    积分:1
  • Ica1
    用ICA盲分离的方法,把任意一个声音与噪音进行分离。(Separate a sound from noisy with ICA method.)
    2011-10-16 09:09:36下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载