登录
首页 » matlab » fractal-use

fractal-use

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

  • fft
    时域信号转换为频域信号的几个例子,本人都用过的,绝对能运行(Time-domain signal is converted to frequency domain signal a few examples, I have been used, absolutely can run)
    2009-09-22 10:45:47下载
    积分:1
  • pso-binary
    pso binary code with cost function
    2012-04-29 05:52:15下载
    积分:1
  • MA
    说明:  画出股票的MA平均线,含具体的步骤说明,包括导入数据、算法构造和做出图形(draw the ave line (MA) in stock market)
    2011-12-07 21:21:03下载
    积分:1
  • Link-prediction
    链路预测的matlab实验源代码,通过这些源代码可以得出链路预测的基本实验效果(Link prediction matlab experiment source code, the source code can be obtained through these basic experimental results link prediction)
    2020-11-22 20:39:35下载
    积分:1
  • zhicha
    本人对载波同步方面深有研究,这是研究生期间做的用插值算法实现载波估计算法,算法性能很好,接近MCRB。(I have a deep respect for carrier synchronization study, which is done during graduate interpolation algorithm used carrier estimation algorithm, algorithm performance is very good, close to MCRB.)
    2014-06-14 11:37:43下载
    积分:1
  • Navie-Bayes
    机器学习中关于朴素贝叶斯(NB)方法的Matlab源代码,附带四个数据集用于实验(Machine Learning on Bayesian (NB) method of Matlab source code, with four data sets for experiments)
    2021-01-13 22:28:47下载
    积分:1
  • AUV-tarcking
    基于反步法的欠驱动AUV水平面直线航迹跟踪控制(Straight-line trajectory tracking control of underactuated AUV in the horizontal plane based on backstepping)
    2012-04-25 14:43:41下载
    积分:1
  • Freq_mesure
    Frequency measure simulation using MATLAB
    2014-11-16 17:56:54下载
    积分:1
  • PSK_performence_with_ConvEnc
    viterbi译码以及psk调制解调的源程序(viterbi decoding as well as the source psk modem)
    2007-09-29 21:33:18下载
    积分:1
  • matlabsimulation
    7位巴克码的matlab仿真,7位巴克码的matlab仿真,7位巴克码的matlab仿真.(7bit Baker matlab simulation,)
    2021-03-08 16:59:28下载
    积分:1
  • 696518资源总数
  • 104269会员总数
  • 42今日下载