-
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
-
DEMATEL
决策实验分析法是最近兴起的多属性决策方法,主要通过实验的方式对评估对象进行评估分析,实验结果较为客观合理(Decision-making experimental analysis method is a multi-attribute decision-making method that has recently emerged. It mainly evaluates and analyzes the evaluation object through experimental methods. The experimental results are more objective and reasonable.)
- 2018-10-18 17:09:08下载
- 积分:1
-
SaliencyToolbox
Koch等人最新的注意力选择算法matlab工具箱2006版(Toolbox code of Attention Selection model by Koch 2006)
- 2009-09-16 19:58:42下载
- 积分:1
-
TaylorAlgorithm
是关于无线定位的泰勒算法,我们大家可以共同商讨(Wireless location on Taylor algorithm, we can work together to discuss)
- 2007-12-24 11:07:23下载
- 积分:1
-
gauss
说明: gauss消元法求解方程组,可以准确的利用gauss消元法求解线性方程组 (gauss elimination method for solving equations, you can accurately use gauss elimination method for solving linear equations)
- 2011-03-24 23:38:07下载
- 积分:1
-
qsort
快速分类算法
快速分类算法快速分类算法快速分类算法(the quick sort algorithm for matlab.
quick sort algorithm for matlab.
quick sort algorithm for matlab. )
- 2012-03-26 01:18:44下载
- 积分:1
-
ArcObject-GIS
Programming, geographic information systems, with c # to do programming, which is a pdf manual(Programming, geographic information systems, with c# to do programming, which is a pdf manual)
- 2014-08-31 12:55:49下载
- 积分:1
-
SEGY_RaW_M
在window环境下,在MATLAB平台中,读写SEGY地震数据(In the window environment, MATLAB platforms, seismic data read and write SEGY)
- 2013-12-11 10:50:19下载
- 积分:1
-
stock_share_data_capture
股票数据爬虫,matlab版本,与网上同一类型的区别在于,能够直接运行,有一定的借鉴意义。(Stock data crawler, matlab version, with the same type of difference between online, can run directly, have certain reference significance.)
- 2017-01-18 21:49:41下载
- 积分:1
-
power_flow
说明: 基于Matpower的IEEE33节点算例配电网潮流计算(A Matpower-based IEEE33 node example for power flow calculation of distribution network)
- 2021-03-22 11:19:17下载
- 积分:1