登录
首页 » matlab » fractal-use

fractal-use

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

  • Turboequalization
    说明:  关于短波通信中多径的Matlab仿真代码(On short-wave communications in multi-path simulation of Matlab code)
    2008-11-16 21:35:30下载
    积分:1
  • hatziar
    欧洲典型微网hatziargyriou_strunz_lv_benchmark_cigre05(European typical micro-mesh hatziargyriou_strunz_lv_benchmark_cigre05)
    2013-07-09 16:30:15下载
    积分:1
  • image_resample.m
    image resampling matlab coding(it is about resampling image)
    2015-04-20 10:13:33下载
    积分:1
  • win32windowwrapperclass_src
    非常帅气的window32 窗口类源码,可以此为基础做进一步的开发。(A Simple Win32 Window Wrapper Class。http://www.codeproject.com/win32/win32windowwrapperclass.asp)
    2014-02-04 09:54:40下载
    积分:1
  • trunking-communication
    说明:  集群数字通信 关键技术 集群数字通信 关键技术(The key digital communications technology cluster)
    2011-04-10 22:42:55下载
    积分:1
  • fujieqi
    在这里设计的是时分复用系统,就是要将三路8比特数据复用到同一信道上进行传输(Here is the design of time division multiplexing system, is to take the road three 8 bit data multiplexed onto the same channel for transmission)
    2014-10-16 09:31:25下载
    积分:1
  • hufkj
    匹配追踪和正交匹配追踪,一种基于多文档得图像合并技术,gmcalab 快速广义的形态分量分析。( Matching Pursuit and orthogonal matching pursuit, Based on multi-document image obtained combining technique, gmcalab fast generalized form component analysis.)
    2017-05-05 11:50:15下载
    积分:1
  • QPSK
    QPSK传输系统在高斯信道以及瑞利衰落信道下的调制解调仿真。(QPSK transmission system in the AWGN channel and Rayleigh fading channels Modulation and Demodulation.)
    2010-12-11 21:12:09下载
    积分:1
  • MRI-tech
    磁共振成像仪的基本硬件,脉冲序列的基本概念和分类,MRI常规质控指标,MRI的优缺点(Magnetic resonance imaging of the basic hardware, pulse sequence and classification of the basic concepts, MRI routine quality control indicators, MRI of the advantages and disadvantages)
    2010-12-31 14:37:38下载
    积分:1
  • 21537142watershed
    图像分割分水岭,可以分割重叠颗粒,算法基于matlab开发(Image segmentation watershed, you can divide overlapping particles, the algorithm based on MATLAB development)
    2017-11-24 09:37:38下载
    积分:1
  • 696518资源总数
  • 106161会员总数
  • 5今日下载