-
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
-
titleduihkxg
其实popupwindow用起来比Dialog 方便,因为dialog一切都需要你自己来实现,而popupwindow帮我们实现了很多,我认为在使用的时候关键我们要看清参数:
popupWindow.showAtLocation(parent, gravity, x, y)
parent这个是一个父view试图,
gravity 这个默认是居中,我们要指定显示方式:Gravity.LEFT
| Gravity.TOP
最后两个参数就是显示的坐标位置,这样就可以根据需求自己定位显示位置了
- 2013-11-26 08:16:34下载
- 积分:1
-
soft_viterbi_final.m
Soft Viterbi decoding algorithm for reed solomon.
- 2014-02-20 00:48:55下载
- 积分:1
-
KF_EKF__UKF
该程序用于比较KF、EKF、UKF滤波器的不同(The program is used to compare KF, EKF, UKF filter)
- 2013-03-10 13:35:33下载
- 积分:1
-
PI-PWM
its an rectifier circuit with PWM PI control technique for high accuracy and better output with very low THD.
- 2013-11-18 14:42:50下载
- 积分:1
-
shexianzhuizongfangfa
射线追踪算法正演模拟,基于地震合成记录,必须的很好的程序,你们可以看看(Ray tracing algorithm forward modeling)
- 2014-12-22 10:55:38下载
- 积分:1
-
matlab1
牛顿法, 快速解耦法, 。潮流计算在数学上属于多元非线性方程组的求
解问题,在用迭代法求解时涉及到大量的矢量和矩阵运算,因而寻求一个能高效
地处理矩阵运算的语言,将给潮流计算程序的编制带来巨大的方便.(fast flow electric Power flow calculation is mathematically the solution of multivariate nonlinear equations.
Solving the problem involves a large number of vector and matrix operations when solving the iterative method, thus seeking a highly efficient solution.
The language of matrix operation will bring great convenience to the compilation of power flow calculation program.)
- 2018-05-05 10:54:49下载
- 积分:1
-
facerecog
This file is for face recognition
- 2010-08-06 17:01:54下载
- 积分:1
-
zhiyinsuanfa2
说明: 这个是基于非测距无线传感器网络定位算法的仿真(This is based on the non-distance localization algorithm in wireless sensor network simulation)
- 2011-04-13 15:44:47下载
- 积分:1
-
OFDM-SIMULATION-in-MATLAB
MATLAB simulation of OFDM transmitter and reciever
- 2014-08-30 01:39:26下载
- 积分:1