登录
首页 » matlab » fractal-use

fractal-use

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

  • Sensorless_Sliding_mode_English
    sensorless pmsm vector control using sliding mode technique.The simulation is based on space vetor modulation and on mathematical model base of pmsm.all the simulation is done in pu unit.The software used for simulation is matlab in code line.
    2011-05-10 04:00:23下载
    积分:1
  • 2445
    基于支持向量聚类的多聚焦图像融合算法∗ Exploiting SVC Algorithm for Multifocus Image Fusion(Based on support vector clustering algorithm for multi-focus image fusion )
    2008-12-18 02:51:22下载
    积分:1
  • matlabyuanchengxu
    matlab 2007R基础教程 清华大学版 书上一部分题目的源程序源程序(matlab 2007R Essentials version of Tsinghua University as part of the book title of the source source)
    2011-06-12 09:49:08下载
    积分:1
  • kalman
    卡尔曼滤波的国外论文,详细讲述了卡尔曼滤波的提出背景,以及应用场合,是卡尔曼那滤波的经典论文(kalman filter )
    2015-01-04 11:47:15下载
    积分:1
  • ios_Chat
    微信功能实现通信机制沟通你我他.在你我他之间架起沟通的桥梁(Micro-channel communication mechanism to achieve functional communication you and me. Between you and me, he acted as bridges)
    2014-02-10 18:46:52下载
    积分:1
  • self-service-and-obstacles
    无人系统自助航路规划及自助避碰程序仿真算法发。(Unmanned systems and self-service buffet collision avoidance route planning program simulation algorithm hair.)
    2013-12-21 17:20:46下载
    积分:1
  • sars
    说明:  该程序用遗传算法对人工神经网络进行优化,预测sars的变化趋势(the process of using genetic algorithms for artificial neural network optimization, forecasting the trend EX/108)
    2005-12-01 22:38:32下载
    积分:1
  • RegsiterFM
    fft图像配准,比较经典的傅里叶图像配准算法(fft register)
    2014-11-26 14:32:26下载
    积分:1
  • vol3d.m
    Volumetric plot of a partially translucent 3D-Matrix (3-Tensor) in Matlab.
    2013-03-14 00:49:02下载
    积分:1
  • yuanchengxu
    一个双原子分子的势能函数为 Ep=E0[(r0 )12-2(r0/r)6] 式中,r为两原子间的距离。a.绘制势能曲线。b.由图说明r0是势能最小的分子间距。c.由图说明E0是分子势能的最小值。 (A diatomic molecule potential energy function for the Ep = E0 [(r0 r) 12-2 (r0/r) 6] where, r is the distance between two atoms. a. draw the potential energy curve. b. r0 is the potential energy by the figure shows the minimum distance between the molecules. c. Figure shows the molecular potential energy E0 is the minimum.)
    2011-10-20 18:10:52下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载