-
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
-
migration
用matlab语言写的地震偏移成像软件集,很有用的东东呵(Matlab language used to write the seismic migration imaging software set, very useful Dongdong Oh)
- 2021-02-23 17:19:40下载
- 积分:1
-
matlab-colormap
实现彩色作图,可实现不同frame累计,并进行插值(Color mapping can be accumulated to achieve a different frame, and interpolation)
- 2009-06-23 06:27:18下载
- 积分:1
-
takikofz
自己写的,有关于在电脑上仿真手机图片的显示效果,希望有所帮助(wrote it myself, on the phone computer simulation results show the pictures, hoping some help)
- 2007-04-08 18:35:38下载
- 积分:1
-
The-displacement
储油罐的变位识别和罐容表标定的方法分析matlab程序(The displacement analysis of calibration method)
- 2013-10-22 20:49:52下载
- 积分:1
-
zaixianbianshijikejian
在线系统辨识资料以及辨识课件,讲解详细,有例题!还讲解了模型阶次辨识,有详细例题介绍!(Online system identification and identification of courseware, to explain in detail, with examples!)
- 2013-12-09 10:09:30下载
- 积分:1
-
MATLAB-Code
基于MATLAB的数字信号处理的源程序,非常有用(MATLAB-based digital signal processing of the source, very useful)
- 2011-05-28 13:06:41下载
- 积分:1
-
feixianxing_zixitong
桥式起重机模型分析,非线性模型的仿真原理图(Bridge crane model analysis, nonlinear models schematic simulation)
- 2012-01-08 22:36:02下载
- 积分:1
-
orl_fisher
模式识别的经典算法之一,fisher脸特征提取,采用matlab进行编程(One of the classic pattern recognition algorithms, fisher Face feature extraction using matlab programming)
- 2009-03-18 22:42:54下载
- 积分:1
-
Canon
matlab模仿的卡农音频信号,通过正弦信号和余弦信号来处理,可以看到matlab处理音频信号的强大功能(Matlab imitation XLR audio signal by the sine signal and cosine signal processing, you can see a strong function of matlab to process audio signals)
- 2012-05-23 22:45:14下载
- 积分:1