登录
首页 » matlab » fractal-use

fractal-use

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

  • DBSCAN
    DBSCAN clustering in vietnamese
    2014-11-21 02:27:07下载
    积分:1
  • osvm
    matlab codes for online SVM
    2011-12-27 14:16:23下载
    积分:1
  • BiSimu
    BiSAR仿真程序,适合初学者学习与入门实践。(BiSAR simulation program suitable for beginners to learn and entry practice.)
    2012-02-07 09:46:49下载
    积分:1
  • EXAMPLE
    it is about matlab file for 1 story building
    2009-03-22 01:34:58下载
    积分:1
  • Portfolio-Optimizer-Tool
    CAPM模型的Matlab实现程序。用于计算最优证券组合的配置和权重。(CAPM model of Matlab procedures. Used to calculate the optimal portfolio configuration and weight.)
    2012-12-28 17:57:55下载
    积分:1
  • MATLAB6
    Matlab数学建模基础教程,估计可能学生用过的会多一点吧!(Basic Tutorial Matlab mathematical modeling, it is estimated will be more students used it!)
    2011-05-05 18:37:14下载
    积分:1
  • nancy_body
    This file contains and display nancy s articulated humanoid body in anatomical static posture. Body segments can be accessed independently they are named with suffix: "_point", polygons are also independent with suffix: "_polygons". In addition, the variables "point" and "polygons" include the whole points and polygons respectively with the accumulative index in the case of polygons. After running the file, do a "whos" to see the actual names of body segments.
    2013-01-30 20:19:42下载
    积分:1
  • ball_way
    小球的抛物线轨迹。将轨迹分解成x坐标和y坐标,计算出每一个时刻的x和y值,然后对x和y进行成像就可以得到轨迹了(Parabolic trajectory of the ball. The track is decomposed into x and y coordinates, x and y values calculated each time, then x and y can be imaged on a trajectory)
    2015-07-10 09:49:07下载
    积分:1
  • DOA
    doa估计的各类经典算法, 适合信号方位估计的各类参考(doa estimation algorithm classic, simple DOA estimation algorithm, algorithm)
    2011-05-15 11:32:47下载
    积分:1
  • pengkao
    对信号进行频谱分析及滤波,数据模型归一化,模态振动,窗函数法设计一个数字带通FIR滤波器。( The signal spectral analysis and filtering, Normalized data model, modal vibration, A window function design FIR digital band-pass filter.)
    2016-05-04 18:11:47下载
    积分:1
  • 696518资源总数
  • 105877会员总数
  • 14今日下载