-
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
-
untitled
single phase induction motor with permanent capacitor in dq axis
- 2014-12-24 02:58:57下载
- 积分:1
-
Matlab_Engine_Test
简单演示了VC-Matlab混合编程的一种方法。(Simple demonstration of the VC-Matlab mixed programming methods.)
- 2010-06-22 13:53:36下载
- 积分:1
-
matpcl
matpcl is pure MATLAB code that allows interfacing with the Point Cloud Library (PCL) tools
- 2013-08-18 03:35:48下载
- 积分:1
-
yangpinguang
基于matlab的模拟oct系统的样品光的程序(Based on the matlab simulation program of oct sample light)
- 2015-04-19 11:54:21下载
- 积分:1
-
LDPC
研究LDPC码的EXIT性能经典论文汇总,包括早期EXIT和PEXIT,以及部分关于LDPC编码领域的论文(Research on the performance of the LDPC code EXIT classic paper summary, including early EXIT and PEXIT, and some papers on the LDPC encoding field)
- 2016-09-13 14:36:11下载
- 积分:1
-
MATLAB_FuSeFenGe
肤色分割的MATLAB 代码,主要是利用YCrCb来探测皮肤区域,然后进行边界提取。
希望对您有所帮助!(Color segmentation of the MATLAB code, mainly using YCrCb to detect skin regions, and then proceed to extract the border. I hope for your help!)
- 2007-09-12 12:47:52下载
- 积分:1
-
costw207channelmodel
说明: 无线移动通信中的典型COST207信道的MATLAB仿真程序,值得通信仿真人士一看 。(Wireless mobile communication channel COST207 typical MATLAB simulation program, one worthy of communications simulation to watch.)
- 2008-09-06 20:42:26下载
- 积分:1
-
Wold_Decomposition_1
Wold s Decomposition (Adaptive filters Theory)
- 2011-09-25 22:47:51下载
- 积分:1
-
PCASIFT
PCA-SIFT的matlab源码,可以对图像的SIFT特征进行PCA主成成分提取,达到降维的目的(PCA-SIFT matlab source image SIFT features the PCA main into ingredients extracted achieve dimensionality reduction purposes)
- 2012-11-14 02:55:41下载
- 积分:1