登录
首页 » matlab » fractal-use

fractal-use

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

  • DE
    说明:  DE 生物进化算法的matlab实现,一类优化仿生算法(DE biology evolutionary algorithm matlab implementation, a class of bionic optimization algorithm)
    2009-03-13 23:05:50下载
    积分:1
  • usart
    this is a usart project
    2015-03-06 23:46:45下载
    积分:1
  • Synthetic-seismogram-code
    压缩文件里边包含好几个合成地震记录的程序,包括楔形模型,断层等,有的还画出了地震记录,反射系数的振幅谱~(the zip file contains several synthetic seismogram programs, including wedge model, fault model, etc., some even draw the earthquake records, the reflection coefficient of amplitude spectrum ~ )
    2021-03-21 16:09:17下载
    积分:1
  • vhdl_lab_projects.
    Adaptive filtering matlab programs
    2009-02-28 01:51:44下载
    积分:1
  • 5
    说明:  原创自环流潮流追踪程序matlab,支持一下,不容易呀(Original program from the circulation flow tracing matlab, to support what it is not easy ah)
    2010-09-21 15:44:01下载
    积分:1
  • VCmatlab
    VC++6.0调用matlab画图、绘制曲线图(VC++ 6.0 call matlab drawing, draw graphs)
    2014-12-28 00:09:41下载
    积分:1
  • JADE
    角度和时延联合估计的DOA算法,在matlab环境下实现(Angle and delay DOA joint estimation algorithm in matlab environment to achieve)
    2020-12-30 17:19:00下载
    积分:1
  • zhendongxinhaopinyuchuli
    对振动信号进行频域处理包括:信号谱分析,matlab中没有的窗函数处理,三分之一倍频程处理、、、(The vibration signal of the frequency domain includes: signal spectrum analysis, the window function in MATLAB no, 1/3 octave processing,,,)
    2015-05-11 10:29:36下载
    积分:1
  • code
    多天线通信系统(MIMO)仿真,包括卷积码,循环冗余校验,高斯信道,最大似然译码。(Multi-antenna communication system (MIMO) emulation, comprising convolutional codes, cyclic redundancy check, a Gaussian channel, the maximum likelihood decoding.)
    2015-03-28 18:05:04下载
    积分:1
  • MATLABprogram
    基于Matlab环境编写的一些神经网络PID控制和模糊PID控制源代码,其中包含BP pid,CMAC PID,RBF PID,BP数值逼近算法,BP预测控制以及模糊PID。(Matlab-based environment for the preparation of a number of neural network PID control and fuzzy PID control of the source code, which includes BP pid, CMAC PID, RBF PID, BP Numerical approximation algorithm, BP predictive control and fuzzy PID.)
    2009-05-11 20:25:12下载
    积分:1
  • 696518资源总数
  • 104384会员总数
  • 26今日下载