-
111
function pi = solve2(count,m,cc)
借助布冯投针实验 仿真求pi的值
pi=0
frq=0
randNo = binornd(1,cc,1,m)
pro=zeros(1,count)
for j=1:count
for i = 1:m
if randNo(1,i) == 1
frq = frq + 1
end
pro(i) = frq/i
end
pi = (2*m)/frq
pro(j) = pi
end
pro = pro,num =1:count
plot(num,pro) (function pi = solve2 (count, m, cc) to vote with Buffon needle experiment simulation find the value of pi pi = 0 frq = 0 randNo = binornd (1, cc, 1, m) pro = zeros (1, count) for j = 1: count for i = 1: m if randNo (1, i) == 1 frq = frq+ 1 end pro (i) = frq/i end pi = (2* m )/frq pro (j) = pi end pro = pro, num = 1: count plot (num, pro) )
- 2011-05-24 15:39:41下载
- 积分:1
-
59159
2d diffusion simulation, gui in matlab
- 2014-08-13 01:41:02下载
- 积分:1
-
lsl
Lsl算法是数字预失真的一种重要算法,一种自适应算法(Lsl algorithm is an important digital pre-distortion algorithm, an adaptive algorithm)
- 2012-01-10 22:37:29下载
- 积分:1
-
ch7_2_2
设定循环检测次数,这里设为只循环一次
tip_l=1
设定hough变换的遍历步径
xl=30 %设定线段起始点
xr=60 %设定线段终止点(Set the number of cycle detection, here is set to cycle only once tip_l = 1 set hough transform Path traversal step xl = 30 set line segment starting point xr = 60 set line segment termination point)
- 2007-08-29 19:22:53下载
- 积分:1
-
MATLAB_2D_wavelet
MATLAB2维小波变换经典程序,用DWT实现二维小波变换(MATLAB2-dimensional wavelet transform classical procedures, with the realization of two-dimensional wavelet transform DWT)
- 2007-09-27 08:37:24下载
- 积分:1
-
FUZZY-CLUSTING
模糊C均值聚类算法的实现,FCM模糊聚类程序,matlab(FCM clustering code,matlab)
- 2021-03-12 23:19:25下载
- 积分:1
-
MATLAB____
matlab源代码教程.........................................(matlab。.....................................................)
- 2010-11-02 14:04:55下载
- 积分:1
-
channel-estimation
无线信道的仿真 对信道仿真的认识有帮助(Simulation of wireless channel simulation of channel help)
- 2009-05-16 22:23:29下载
- 积分:1
-
TVCalculate
matlab传动系统扭振GUI计算程序,MATLAB7.0版本以上,算法采用了符号运算方式。(GUI drive system torsional vibration matlab program, MATLAB7.0 version of the above, the algorithm uses symbolic algorithms.)
- 2009-05-30 08:42:13下载
- 积分:1
-
pupil-center
to find the pupil radius using similarity based approach.
- 2011-02-08 14:14:23下载
- 积分:1