登录
首页 » matlab » fractal-use

fractal-use

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

  • winplt
    一个很好用的窗函数生成工具,能够计算得到想要的窗函数,简便易用。(A good window function used to generate tools that can calculate the desired window function, easy-to-use.)
    2007-10-15 18:58:14下载
    积分:1
  • MATLAB
    MATLAB中单位脉冲信号和单位抽样序列的产生程序(MATLAB in the sampling unit and unit pulse sequence generation program)
    2010-10-25 12:54:41下载
    积分:1
  • Data-Fitting
    提供一元函数插值,样条插值,多项式插值或拟合,曲线拟合等数据拟合源码(Provide one yuan function interpolation, spline interpolation, polynomial interpolation or fitting, curve fitting, etc. Data fitting source)
    2014-09-12 16:18:26下载
    积分:1
  • image
    基于变换编码的图像压缩及解压,含有离散余弦变换程序。(Transform based image compression and decompression coding)
    2010-09-04 15:18:31下载
    积分:1
  • communication.simulation
    说明:  该程序包括了通信系统的相关仿真程序(matlab),并给出了QPSK、MPSK、BPSK等调制方式的相关matlab仿真程序。(The procedures include the communications system simulation related procedures (Matlab), and gives a QPSK, MPSK, such as BPSK modulation of Matlab simulation program.)
    2020-10-05 16:17:38下载
    积分:1
  • bayes1
    用matlab完成分类器的设计,说明文字程序相应语句,子程序有调用过程(Using matlab complete classifier design, captions program corresponding statement, calling subroutines process)
    2014-12-19 20:57:28下载
    积分:1
  • docsity-introduction-to-neural-networks
    There are three unknown constants in this equation, so three small plates with differing radii are sunk to the same distance. This will determine the minimal size plate required to sustain a large load. The loads required for this sinkage are recorded, as shown in the accompanying figure.
    2019-07-06 19:29:43下载
    积分:1
  • MatLab_Programs
    一些非常有用的MATLAB源码,对于提高编程水平和学习通信理论知识还有帮助.(Some very useful MATLAB source code for programming improve the level of theoretical knowledge and learning of communication also help.)
    2007-10-03 21:22:42下载
    积分:1
  • CCD_noise_benke
    激光光斑模拟 内含噪声,作为定位算法的前期处理(Laser spot simulation)
    2013-05-15 21:57:21下载
    积分:1
  • Finite_time_Sim
    群集行为是多智能体系统研究中的一个重要问题,其主要任务是给出多个智能体基于局部信息实现群集行为的条件,本文针对信息交换拓扑保持连通性的群集行为展开研究,主要内容如下(Swarming behavior is an important problem in the research of multi-agent system, its main task is to give a local agent information to realize the swarm behavior based on the condition, according to the topology preserving connectivity of the cluster behavior information exchange, the main contents are as follows)
    2017-08-09 15:32:20下载
    积分:1
  • 696518资源总数
  • 104444会员总数
  • 15今日下载