-
fractal-use
分形的练习一
①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)
- 2013-03-02 10:03:09下载
- 积分:1
-
RCB_array
beamforming,capon,和music三种波达方向定位算法的matlab仿真源代码(the three DOA beamforming, capon, and music positioning algorithm matlab simulation source code)
- 2012-09-17 14:53:45下载
- 积分:1
-
MATLAB
说明: 本教程提供了使用MATLAB的实践性指导,它基于MATLAB6.0版,内容由浅入深,特别是本书对每一条命令的使用格式都作了详细而又简单明了的说明,并配备了例题加以说明其用法,因此,对于初学者自学是很有帮助(The Guide provides practical guidance to the use of MATLAB, which is based on MATLAB6.0 edition, the content of easy-to-digest, especially the book on the use of each command formats are explained in detail and simple description and sample questions to be equipped with its usage, therefore, self-study is very helpful for beginners)
- 2008-11-04 17:45:51下载
- 积分:1
-
genetic-algorithm
matlab中一种遗传算法的源程序 很全面 很有用(a genetic algorithm matlab source code is very comprehensive and useful)
- 2012-09-03 14:55:08下载
- 积分:1
-
Dualstimation
一片介绍双估计的很好的文章。同时估计动态系统的状态和模型参数,使用扩展kalman filter和ukf方法,很有参考价值(Introduce a dual-estimated good article. At the same time, the estimated dynamic system state and model parameters, the use of extended kalman filter and UKF methods, useful reference)
- 2007-07-24 11:12:01下载
- 积分:1
-
GAOT_BY_SheffieldUniv
英国谢菲尔德大学推出的GA算法工具箱,只能说,很好,很强大(GA toolbox by Sheffield Univ, excellent and perfect.)
- 2010-07-18 16:36:35下载
- 积分:1
-
mm
说明: 一个简单的Matlab GUI程序示范,初学者用于参考(A simple Matlab GUI program demonstrations, beginners for reference)
- 2010-03-14 16:26:56下载
- 积分:1
-
MATLABsciencecompute
说明: 包含matlab用到的所有数学计算,希望对大家有所帮助。(Matlab contains all the mathematical calculations used in the hope that all of you to help.)
- 2008-12-06 21:24:57下载
- 积分:1
-
seg
image segmentation of car number plate.
- 2010-05-09 18:09:09下载
- 积分:1
-
nijukongzhi
阀控液压马达力控系统模型,实现扭矩控制,液压阀为伺服阀(valve control hydralic motor of T_control)
- 2013-03-17 19:03:07下载
- 积分:1