登录
首页 » matlab » fractal-use

fractal-use

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

  • CASCADED
    SERIES CASCADED MULTI-LEVEL SWITCH MODE MOTOR CONTROLLER
    2010-07-28 21:18:07下载
    积分:1
  • IRIS
    Source code for Iris recognition on Matlab
    2011-05-12 14:43:33下载
    积分:1
  • RandomMatrixTheory-Exercise
    Random matrix theory - exercise.(Random matrix theory-exercise.)
    2007-01-08 10:20:47下载
    积分:1
  • Choleskyfangfa
    数值计算程序:用Cholesky分解方法求解方程组(Numerical calculation procedures: the Cholesky decomposition method for solving equations)
    2012-06-12 22:24:45下载
    积分:1
  • robustdesigen
    鲁棒控制的程序,用于LMI工具箱编程实现的算法(Robust control program for LMI toolbox programming algorithm)
    2021-04-24 20:48:47下载
    积分:1
  • BPSK
    the BER of BPSK in Rayleigh channel
    2014-05-27 17:06:09下载
    积分:1
  • ACmotor
    异步电机的电流预测控制,给定转速,通过比较电机输出的dq轴电流和给定电流判断控制性能的优劣(predictive Current Control)
    2020-10-18 20:57:26下载
    积分:1
  • bianshi2
    说明:  二阶系统的参数辨识,使用matlab实现,差分方程形式(Parameter identification of the second order system, realized by MATLAB, in the form of difference equation)
    2020-06-26 11:16:50下载
    积分:1
  • feiduicheng
    用MATLAB编程,用FDTD方法分析了非对称薄膜波导的传输特性(Programming with MATLAB, using FDTD method to analyze asymmetric transmission characteristics of thin film waveguide)
    2010-12-10 12:52:44下载
    积分:1
  • matlab
    说明:  5个自己开发的Matlab的源码。其功能分别是队列、亚可比、拟合、标准化。(Five self-developed Matlab source. The function of the queue, respectively, Jacobi, fitting, standardize.)
    2010-04-08 10:39:56下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载