-
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
-
LASER
laser analysis using matlab at various power
- 2012-01-09 03:59:36下载
- 积分:1
-
yankebingchuang1
已知门诊时间C[i,3] 求解病人住院时间,此算法虽然有一定的局限行,但是可以根据入院期望值计算出来大体的的入院时间;使用是,要把里面的数据进行处理(只改变输入值和u 数据个数定义值(一般取较大值即可))(Known patient time C [i, 3] to solve the patient length of stay, although this algorithm has some limitations line, but expectations can be calculated according to the general hospital of admission time use is necessary to process the data inside (only change the number of input values and u define the data value (whichever is greater value to the general)))
- 2011-07-25 18:58:55下载
- 积分:1
-
mat
this is one of the best satelite code in the world to find the parameters of the satelite
- 2013-08-23 11:58:38下载
- 积分:1
-
Super-resolution-DOA-Estimation
This estimator correctly identifies the two distinct directions of arrival.
- 2015-03-11 23:01:41下载
- 积分:1
-
paperkid
计算机仿真 报童问题的matlab实现,对于不同的分布情况,最优值的计算(Newsboy problem of computer simulation matlab to achieve, for different distribution of the calculated optimal value)
- 2009-05-23 11:58:03下载
- 积分:1
-
xianglingxishu
相邻系数引入到小波变换,用局域均值分解特征提取(Adjacent coefficient is introduced into the wavelet transform, using the local mean decomposition feature extraction)
- 2015-01-08 20:04:41下载
- 积分:1
-
cfkvvkrr
可以动态调节运行环境的参数,MIMO OFDM matlab仿真,部分实现了追踪测速迭代松弛算法,单径或多径瑞利衰落信道仿真,加入重复控制,FIR 底通和带通滤波器和IIR 底通和带通滤波器。(Can dynamically adjust the parameters of the operating environment, MIMO OFDM matlab simulation, Partially achieved tracking speed iterative relaxation algorithm, Single path or multipath Rayleigh fading channel simulation, Join repetitive control, Bottom-pass and band-pass FIR and IIR filter bottom pass and band-pass filter.)
- 2016-03-11 23:52:04下载
- 积分:1
-
ls_AR
时间序列分析,采用了最小二乘(LS)与自回归(AR)的组合模型,并用MATLAB将其实现(Time series analysis, using a least-squares (LS) and autoregressive (AR) model combination and its implementation using MATLAB)
- 2013-09-10 11:13:58下载
- 积分:1
-
chap3
matlab图像处理实例详解第三章源码程序,推荐大家一起学习,很好很实用。(Detailed examples matlab image processing Chapter III source program, recommend everyone to learn, very very useful.)
- 2013-11-07 18:01:10下载
- 积分:1