-
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
-
bistable-syetem
随机共振例程 bistable_system.m(bistable_system matlab code)
- 2020-12-04 11:49:24下载
- 积分:1
-
MATLAB
说明: 有关图像去噪和调节对比度……………………………………………………(about graghic processin .basic ………………………………………………)
- 2010-04-27 20:59:21下载
- 积分:1
-
LR
Logistic Regression Classifier
- 2013-05-05 08:16:28下载
- 积分:1
-
HS matlab-20180404T003738Z-001
和声搜索优化算法进行优化,测试方程分为 无限制和限制方程(harmony search algorithm to do the optimization)
- 2018-04-04 08:35:12下载
- 积分:1
-
collectanaly
主要是利用MATLAB来实现系统的聚类分析,其中包括代码和功能说明。(Is to use MATLAB to implement the system of cluster analysis, including code and functional specifications.)
- 2010-06-04 22:51:10下载
- 积分:1
-
Voltage sag
Voltage sag compensation controlling by Fault Current Limter under different load conditions.
- 2014-04-04 12:27:11下载
- 积分:1
-
Filter
滤波器的Matlab实现(内有8个文件)(Filter Matlab realize (there are 8 files))
- 2008-03-21 09:41:29下载
- 积分:1
-
romberg
a Matlab program of Romberg Algorithm calculate
- 2010-12-22 20:04:39下载
- 积分:1
-
matlab-ant-colony-algorithms
matlab 蚁群算法 源程序,里面有多个m文件(ant colony algorithm matlab source code, there are several m-files)
- 2011-10-21 20:55:06下载
- 积分:1