-
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
-
cvx
讲述凸优化,经典著作,有matlab程序(About convex optimization, classics, there is matlab program)
- 2011-10-14 09:07:43下载
- 积分:1
-
diedaifa
这里讲述的是matlab的迭代问题,含有多个程序可提供参考(About matlab difference, containing more than one program can provide a reference)
- 2013-04-26 22:38:11下载
- 积分:1
-
PV_System
To keep overall output power per
unit cost low, the grid-connected converters should be
able to extract the maximum available power from the
PV arrays. Since the PV array characteristic is highly
nonlinear, maximum power point tracking (MPPT) of
the PV arrays becomes rather challenging.
- 2010-07-20 21:06:47下载
- 积分:1
-
Archimedes_spiral
阿基米德曲线的绘制,GUI显示,有推导公式,可自行修改参数。(Archimedes spiral,you can change the parameter by your need)
- 2012-12-30 17:10:04下载
- 积分:1
-
chuang
用MATLAB软件实现带通,低通,高通滤波器的窗函数的频率响应,观察频响特点(MATLAB software band-pass, low pass, high pass filter window function frequency response, the observed frequency response characteristics)
- 2012-06-27 21:26:25下载
- 积分:1
-
PMSMVC
pmsm矢量控制,有传感器,小功率电机,指标基本没问题(Vector control in pmsm)
- 2013-10-18 22:45:05下载
- 积分:1
-
hfssapi
matlab与hfss的连接程序,作用为使用matlab编写Vbs脚本来控制hfss(the connection matlab code of matlab and hfss)
- 2015-04-06 21:18:09下载
- 积分:1
-
51?????_Farrow
说明: 法罗滤波matlab实例,用于解决时偏。(farrow filter matlab demo)
- 2021-03-04 20:19:32下载
- 积分:1
-
FOMA_LOD
应用局部最优检测技术的导航信号捕获,对其进行了捕获分析,提供计算信噪比的方法(Application of local optimum detection of navigation signal capture, catch analysis was carried out, provided the SNR calculation method)
- 2010-05-16 18:10:11下载
- 积分:1