登录
首页 » matlab » fractal-use

fractal-use

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

  • sy_ge_nodamp_rduanlu_sol
    matlab中同步电机在dq轴系下的建模,转子绕组短路定子绕组突然加对称电压,无阻尼绕组,自己用S函数编的,很好用的哦,适用于初学(matlab modeling of the synchronous motor in dq shaft under the rotor winding short-circuit the stator winding suddenly and symmetrical voltage damper winding S function series, very well used, suitable for beginners)
    2012-08-06 20:09:33下载
    积分:1
  • scopus_list
    uck-Boost buck- boost chopper circuit simulation model
    2013-11-11 20:46:38下载
    积分:1
  • nwgtpv2c-0.11.tar
    newgtp的代码,主要负责实现分析gsn间的网络协议gtp协议,包括gtpv2版本的报文解析。(newgtp code, is mainly responsible for implementing network protocols gtp gsn between protocol analysis, including gtpv0, gtpv1 version of the message)
    2014-10-27 17:01:20下载
    积分:1
  • MATLABSIM
    MATLAB语言与控制系统仿真的完整教程。此书写的非常详细。很适合有点基础的MATLAB编程者阅读。(MATLAB Language and Control System Simulation of a complete tutorial. The writing is very detailed. Is little basis for MATLAB programmers to read.)
    2010-08-01 11:00:36下载
    积分:1
  • pitchn
    pitchn,功能:求一句话的语音基音频率包络。(pitchn matlab)
    2011-05-06 10:35:00下载
    积分:1
  • cnet
    (eccv10)Features Image Matching[matlab]源代码((eccv10)Features Image Matching[matlab])
    2013-11-06 14:21:19下载
    积分:1
  • InvertedPendulumControled_State_Space
    Simple Inverted Pendulum with LQR,PID SimMechanics
    2014-01-25 16:06:23下载
    积分:1
  • MATLABFFT-harmonic-analysis
    基于MATLAB的FFT谐波频谱分析,利用FFT变换算法进行谐波的频率和幅值的变化分析,利用图形分析结果。(MATLAB-based FFT harmonic spectrum analysis using FFT transform algorithm changes the frequency and amplitude of the harmonic analysis, the use of graphical analysis results.)
    2014-06-09 17:18:22下载
    积分:1
  • examples
    using Monte Carlo integeration calculate Q function
    2007-11-15 12:44:18下载
    积分:1
  • Hand-Modeling-from-Surface-Anatomy
    Palmprint Images Based on Diversity and Contrast is a good work which would be much helpful for the person who are all working in this area
    2011-07-19 18:51:55下载
    积分:1
  • 696522资源总数
  • 104029会员总数
  • 31今日下载