登录
首页 » 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 个回复

  • LKmatlab
    该matlab程序能够实现金字塔光流计算 (The matlab program can achieve pyramid optical flow calculation)
    2009-03-11 16:44:11下载
    积分:1
  • Lab10_TrafficLight
    TM4C基础学习实验,交通信号灯控制编程实验(TM4C based learning experiments, traffic signal control programming experiment)
    2014-12-27 13:31:57下载
    积分:1
  • Matlabhelp
    一本MATLAB的中文帮助手册,用户在使用matlab的过程中出现问题都可以参考这本手册。(MATLAB a manual to help Chinese users in the process of using matlab problems can refer to the manual.)
    2009-04-16 08:40:06下载
    积分:1
  • EMD-and-wavelet
    EMD分解和小波重构的一些程序。。。。。。。。。。(EMD wavelet decomposition and reconstruction of some programs. . . . . . . . . .)
    2015-03-07 14:04:54下载
    积分:1
  • 123
    通过风电场的实际功率和预测功率进行风储功率容量配置(Wind Storage Power Capacity Configuration)
    2019-01-04 15:28:25下载
    积分:1
  • mont-carlo-tsp
    tsp with mont carlo algorithm
    2011-05-01 14:23:01下载
    积分:1
  • jidamodel
    matlab悬置系统频率与解耦率计算程序(matlab mounting system frequency decoupling rate)
    2012-08-21 23:11:35下载
    积分:1
  • refraction
    光学工程对光路的追迹应用很多 本程序可以模拟光的折射路径。(The refraction of light)
    2013-09-20 12:49:55下载
    积分:1
  • feixianxingfangchengzujiesuan
    非线性方程组数值计算,MATLAB语言实现。包括多种迭代方法,牛顿法,拟牛顿法,以及相关的改进算法。(Numerical calculation implementation)
    2010-12-06 10:16:08下载
    积分:1
  • INS-alignment
    关于惯性导航系统传递对准与系统参数误差分析的源代码~谢谢分享(Share on the passing of the inertial navigation system alignment and error analysis of the source code ~ Thank you)
    2012-08-19 15:45:11下载
    积分:1
  • 696516资源总数
  • 106913会员总数
  • 8今日下载