-
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
-
Digital-Image-Processing-homework
图像采样,图像二值化,计算图像噪声水平,包含Matlab源代码(Sampling the image, binarizing the image, calculate the image noise level,include code)
- 2014-11-04 19:51:20下载
- 积分:1
-
pcd1
program to process steganografi and watermarking
- 2010-12-02 14:53:37下载
- 积分:1
-
phd_fig4b_SM_APA_U
集员仿射投影算法的matlab码源,论文Set-Membership Affine Projection algorithm的仿真程序(Set membership affine projection algorithm)
- 2021-04-22 16:28:48下载
- 积分:1
-
Fussy_mathematicsVariational_methodMatlab
模糊数学+变分法+Matlab基础教程 word版本(Fussy mathematics,variation method and Fundamental Matlab)
- 2009-06-10 23:43:55下载
- 积分:1
-
read
用matlab实现的视频读取并提取目标背景,对初学者很有用(failed to translate)
- 2009-05-10 15:36:51下载
- 积分:1
-
cdhmm
用Matlab开发的基于HMM的语音识别系统(Developed using Matlab-based HMM speech recognition system)
- 2009-03-25 16:51:16下载
- 积分:1
-
0849300967.pdf
Finite element method using Matlab
- 2013-11-07 10:56:37下载
- 积分:1
-
Farrow-filter-design
两篇中文论文,详细叙述了Farrow滤波器的设计方式和理论基础,非常实用!(Two Chinese papers, described in detail Farrow filter design methods and theoretical foundation, very useful!)
- 2013-11-15 17:15:20下载
- 积分:1
-
2D-FDTD-of-ridge-waveguide
光波在二维电介质中波导现象的有限时域差分计算方法。(2D FDTD of light guided through dielectric ridge waveguide.)
- 2014-07-14 12:37:16下载
- 积分:1