登录
首页 » matlab » fractal-use

fractal-use

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

  • robust
    基于遗传算法的鲁棒控制器设计及画图程序,这是对于给定的一个系统进行的设计(Genetic Algorithm Based on Robust Control Design and drawing program, this is for a given design of a system)
    2009-06-08 17:26:37下载
    积分:1
  • Read_Data_From_TXT2
    将signltap采集的数据导入到matlab进行,将txt文件数据导入到matlab( )
    2013-09-03 19:03:28下载
    积分:1
  • duo-mu-biao-xian-xing-you-hua
    利用粒子群算法计算多目标线性优化问题的解(Using multi-objective particle swarm algorithm for solving linear optimization problems)
    2014-09-15 21:57:07下载
    积分:1
  • Disfrct
    FRACTIONAL FORUIER TRANSFORM MATLAB PROGRAM
    2013-09-22 17:27:10下载
    积分:1
  • scripts
    The plane stress analysis refers to the problems where the thickness of the structure is very small compared to other dimensions of the structure in the XY plane. The plane stress problem is a 2D problem. The stresses in the z direction are considered to be negligible,  0, the stress-strain compliance relationship for an isotropic material becomes,
    2014-01-15 00:21:19下载
    积分:1
  • SBM_Pol_Filt
    基于散射模型的PolSAR滤波算法(J.S.Lee),matlab程序(Scattering model PolSAR based filtering algorithm (JSLee), matlab program)
    2010-11-01 13:17:33下载
    积分:1
  • MATLAB
    matlab初步认识,利用matlab进行图像读取、保存一些基本操作(the matlab preliminary understanding, matlab image reading, save some of the basic operations)
    2013-03-09 23:03:27下载
    积分:1
  • MATLAB_reveal_add1
    matlab揭秘的附件, 带图带源码文件,1、3章(the matlab Secret Annex, the band diagram with source files, 1,3 Chapter)
    2012-12-01 12:21:59下载
    积分:1
  • QPSKwithAWGNRayleighchannel
    对于QPSK性能分析的源码,最后给除2种信道下的误码率比较图(QPSK performance analysis for the source, the final addition to the two types of channel bit error rate plan)
    2007-06-23 18:01:13下载
    积分:1
  • Finite-time-stabilization-map
    rossler混沌系统中,反馈增益k在有限时间内收敛到了一个合适的负常数(rossler chaotic system, the feedback gain k in a finite time convergence to a suitable negative constant)
    2011-12-30 15:44:21下载
    积分:1
  • 696518资源总数
  • 104432会员总数
  • 16今日下载