登录
首页 » matlab » fractal-use

fractal-use

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

  • radon
    说明:  用于地震数据的拉冬变换,可以分离直达波,折射波河反射波(use to radon change)
    2010-05-05 08:33:24下载
    积分:1
  • LDCP
    a)Refer to the LDPC presentation slides provided, and use the input data provided below to decode the codeword Repeat a) with new matrix H, codeword and σ^2 given below(a) Refer to the LDPC presentation slides provided, and use the input data provided below to decode the codeword Repeat a) with new matrix H, codeword and σ ^ 2 given below)
    2014-11-12 08:21:03下载
    积分:1
  • MatlabCodeforStochasticDynamicProgramming
    一个实现随机动态规划的实例的matlab代码,附有参考文献,适合初学者(A realization of stochastic dynamic programming examples of matlab code, with references for beginners)
    2008-06-24 20:59:40下载
    积分:1
  • LegendreFit
    对已知的数据进行勒让德多项式拟合,并求出计算点的函数值(Fitting the known data with Legendre polynomial and findding the function value at calculated point)
    2010-05-06 00:16:12下载
    积分:1
  • h74matlab
    汉明码,信息论与编码,74系列 的 故意结果iu(hanming just it ahya hah)
    2010-06-28 19:35:35下载
    积分:1
  • Digital_video_proceeding
    这是数字视频方面的知识,里面的代码是用MATLAB进行编写的,实现的功能是利用多约束的方法进行目标跟踪,是学习数字视频图像不错的一个例子。(This is a digital video knowledge, which the code is written in MATLAB to achieve the functionality is the use of multi-target tracking method constraints, is learning digital video images of a good example.)
    2010-07-01 12:42:03下载
    积分:1
  • Fusion
    多元测试信息融合课程的编程作业,利用DS理论进行数据融合,有相关的例题(Multivariate testing information fusion programming assignments courses use DS theory for data fusion, there are relevant examples)
    2014-01-12 10:31:24下载
    积分:1
  • allfitdist
    This script selects the best fit according to BIC and AIC criterions.
    2012-04-13 00:44:09下载
    积分:1
  • bpsk
    Bpsk simulation in matlab
    2014-02-16 03:13:05下载
    积分:1
  • MATLABchengxu-wushouzhang
    最优控制理论与应用中MATLAB程序集与图集,学习最优控制算法的,可以很好借鉴一下。(Optimal Control Theory and Applications in MATLAB and the Atlas assembly, learning optimal control algorithm, can learn a good look.)
    2011-09-22 16:38:01下载
    积分:1
  • 696518资源总数
  • 105595会员总数
  • 1今日下载