-
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
-
trajectory
轨迹发生器matlab函数 导航仿真使用(Trajectory generator navigation simulation using matlab function)
- 2020-12-16 14:19:12下载
- 积分:1
-
MultipathFading
对无线通信中的多径衰落信道进行MATLAB代码仿真。(Wireless communications multipath fading channel simulation of MATLAB code.)
- 2011-01-10 22:31:32下载
- 积分:1
-
ObjectDtction
Its a matlab code for object detection, it does back-projection and morphology filtering to get ROI and use blob detection technique for BBox
- 2014-12-16 23:40:49下载
- 积分:1
-
ruleout
可以实现粗糙集的整个算法,从上下近似、属性约简、属性重要度到决策规则的输出和规则的确定性因子,全部实现。内附测试数据,有详细的注解,可以实现与数据库的直接连接。(Rough set can be achieved throughout the algorithm, from top to bottom approximation, attribute reduction, attribute importance to the uncertainty factor output of decision rules and regulations, all to achieve. Enclosing the test data, detailed notes, can be achieved with a direct connection to the database.)
- 2021-02-28 15:59:35下载
- 积分:1
-
Network-flow-maximum-flow
网络流 最大流的matlab算法,包含多个文件(The network flow maximum flow Matlab algorithm contains multiple files)
- 2020-12-22 20:19:13下载
- 积分:1
-
waveguide_dispersion
三层平板光波导,计算有效折射率,求解波导色散,(Three planar waveguides, calculate the effective refractive index of the waveguide dispersion solution,)
- 2021-01-30 15:48:35下载
- 积分:1
-
demodulation
cours demodulation. traitement de signal analogique
- 2010-11-30 07:00:41下载
- 积分:1
-
capacity_MIMO
This chapter contains sample programs for determining capacity. The reader is advised to go through the coding. The
file "capacity_water.m" is for measuring the waterfilling capacity. It should be made to work with a file similar to
"capacity_plot_main.m". The latter file deals with all the other capacity plots given in the book in Chapter 2.
All programs are verified with MATLAB versions 6.0 and above with signal processing and communications toolboxes.
- 2008-07-11 16:49:03下载
- 积分:1
-
MATLAB
连杆,主要是四杆机构的仿真,界面设计,以及返回函数的编写,和文本框的设置(Kinetic analysis and dynamic simulation of the planar rod robot in the MATLAB Simulink-based)
- 2012-05-08 19:46:47下载
- 积分:1