登录
首页 » matlab » fractal-use

fractal-use

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

  • 4_DPSK
    Probability of error of 4-DPSK system with differential phase coherent receiver.
    2009-12-13 07:52:18下载
    积分:1
  • fit_mix_2D_gaussian
    fit_mix_2D_gaussian - fit parameters for a 2D mixed-gaussian distribution using EM algorithm format: [u,covar,t,iter] = fit_mix_2D_gaussian( X,M ) input: X - input samples, Nx2 vector M - number of gaussians which are assumed to compose the distribution output: u - fitted mean for each gaussian (each mean is a 2x1 vector) covar - fitted covariance for each gaussian. this is a 2x2xM matrix. t - probability of each gaussian in the complete distribution iter - number of iterations done by the function
    2011-02-09 19:04:25下载
    积分:1
  • permutar-matriz
    permutar matriz y generador de arreglo de numeros aleatorios irrepetibles
    2012-05-20 10:15:59下载
    积分:1
  • wolfe-type-stepsize-search
    bfgs算法中需要用到的步长规则嗬嗬嗬嗬(the BFGS method)
    2012-06-15 19:05:26下载
    积分:1
  • supercontinuum
    关于拉曼光纤激光器超连续谱的仿真程序,欢迎大家下载楼!(this is about supercontinue spectrum.)
    2021-04-12 15:28:57下载
    积分:1
  • lms
    lms自适应均衡算法,lms算法使用MATLAb实现(lms adaptive equalization algorithm, lms algorithm implementation using MATLAb)
    2010-06-15 16:58:25下载
    积分:1
  • cooperative_diversity2
    Implementation Throughput Improvement for Cell-Edge Users
    2012-07-29 15:18:22下载
    积分:1
  • allcode
    Codes for the functions in wavelet domain
    2013-03-09 13:30:27下载
    积分:1
  • UnEncrypted
    COMMANDE VECTORIELLE DE MACHINE ASYNCHRONE EN ENVIRONNEMENT TEMPS RéEL MATLAB/SIMULINK
    2015-02-27 18:06:41下载
    积分:1
  • low_pass
    图像的低通滤波器,用MATLAB设计一个3×3模板标准差为0.5的高斯低通滤波。(Image low-pass filter MATLAB design, a standard template for 3 x 3 0.5 gaussian low-pass filter)
    2010-06-09 15:31:34下载
    积分:1
  • 696516资源总数
  • 106409会员总数
  • 8今日下载