登录
首页 » matlab » fractal-use

fractal-use

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

  • for_zzt
    huffman算子检测。压缩包解压时没有密码。(huffman operator testing)
    2010-06-21 22:42:31下载
    积分:1
  • pcm_encode
    基于matlab的数字频带通信系统仿真,第三步:PCM编码(Matlab digital band-based communication system simulation, the third step: PCM coding)
    2010-05-29 15:37:57下载
    积分:1
  • Untitled
    通过c语言编程画出m序列的自相关及频谱图形,还包括扩频和解扩,(M squence can be described through C language )
    2015-04-17 12:22:06下载
    积分:1
  • 基于元胞自动机的matlab疏散
    说明:  matlab人员疏散模型,有GUI界面,适合有选做人员疏散和元胞自动机应用的小伙伴使用(Matlab personnel evacuation model, with GUI interface)
    2020-12-31 16:18:59下载
    积分:1
  • simulated-annealing
    模拟退火程序,用MATLAB语言实现,并带有程序算法说明(simulated annealing)
    2009-11-26 20:43:00下载
    积分:1
  • stm
    IT REFERS CODE FOR USING STM
    2014-10-20 18:25:22下载
    积分:1
  • Caponback
    caponback自适应波束形成 array beamform(caponback array beamform)
    2014-01-21 21:50:34下载
    积分:1
  • NMO
    说明:  地震勘探动校正程序,地震勘探中的常规处理(NMO code for seismic exploration, conventional processing in seismic exploration.)
    2019-06-22 18:22:44下载
    积分:1
  • highlight
    说明:  Matlab开发环境中编辑程序文本时的高亮工具代码。(Matlab development environment in the editing process of the highlighted text tool code.)
    2008-09-22 11:26:22下载
    积分:1
  • Schmidl
    T.Schmidl & D.Cox算法给出了不同信噪比下,T.Schmidl 和D.Cox 提出的算法的定时测度图
    2012-05-04 01:33:10下载
    积分:1
  • 696518资源总数
  • 104228会员总数
  • 45今日下载