-
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
-
雨流计数法
说明: 雨流计数法的matlab实现-三点法与四点法两种实现方法。此文档为应用三点法与四点法的雨流计数法的具体matlab代码与部分测试数据(The realization of rainflow counting method in matlab-three-point method and four-point method. This document is the specific matlab code and part of the test data of the rain counting method using the three-point method and the four-point method)
- 2021-01-24 19:58:38下载
- 积分:1
-
GAN_Rayleigh
说明: GAN protocol raylieh channel
- 2021-03-16 23:59:21下载
- 积分:1
-
covcod-viterbidec_matlab
卷积编码和viterbi译码程序,绝对可用,完全中文注释(none)
- 2009-11-04 14:14:02下载
- 积分:1
-
is95
此函数用于IS-95前向链路系统的仿真,包括扩
频调制,匹配滤波,RAKE接收等相关通信模块。
( This function is used to forward link IS-95 system simulation, including the expansion of frequency modulation, matched filter, RAKE receiver, and other related communication module.)
- 2011-06-06 16:19:07下载
- 积分:1
-
s_xy416838
使用matlab程序编写的车牌识别系统,可以识别包含中文数字和字母的成品,对于车牌 KWavnM格式的分割、识别,程序的内容包括模板库、测试的图片,rXkeqWd校验等。(Programming using matlab license plate recognition system that can recognize numbers and letters containing Chinese finished, KWavnM format for license plate segmentation, identification, contents of the program includes a template library, test images, rXkeqWd check and so on.)
- 2016-01-14 22:50:39下载
- 积分:1
-
MATLAB-sample
此文件包含大量matlab例程,尤其适合初学者,当学习资料在适合不过(This file contains a lot of matlab routines, especially for beginners, but when learning materials in a suitable)
- 2013-08-11 13:57:34下载
- 积分:1
-
matlabparticle
基于粒子滤波实现的纯方位目标跟踪,最后证明该算法收敛(Particle filter based on the realization of the bearings-only target tracking, the final proof of the convergence of the algorithm)
- 2021-05-13 20:30:02下载
- 积分:1
-
split_step_fiber
calculation of light going along fiber
- 2011-11-29 21:54:25下载
- 积分:1
-
scfig16
Scfig16 function for wavelet analysis
- 2013-05-15 02:35:02下载
- 积分:1