-
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
-
FM0
用matlab实现的FM0(双相间隔码编码)编码(Matlab implementation of the FM0 (two-phase interval coding) encoding)
- 2012-05-26 21:29:41下载
- 积分:1
-
jifentouying
针对满文文字的特点,利用投影法进行文字分割,效果较好(For the full text of the characteristics of the text, use projection method for text segmentation, better)
- 2014-11-10 15:10:34下载
- 积分:1
-
ooDACE-1.4
说明: 克里金模型的MATLAB工具箱,克里金模型是比较流行的空间插值算法(MATLAB Toolbox for Kriging Model)
- 2019-03-30 16:22:48下载
- 积分:1
-
adapt1
Adaptive Filter for image processing, a good MATLAB code.
- 2009-05-22 04:11:09下载
- 积分:1
-
Gaussian
基于MATLAB研究二维Gaussian低通滤波器的时频特性及其用于模仿点扩散函数(PSF:point spread function)在图像退化建模中的应用(When the frequency characteristics of the two-dimensional Gaussian MATLAB study based on its low-pass filter is used to mimic the point spread function (PSF: point spread function) in image degradation modeling)
- 2014-08-31 00:06:23下载
- 积分:1
-
bandelets_toolbox
This code is only intended to explain the basics behind the bandelet transform, and to be able to play with the
major concepts and properties of these orthogonal basis. It
does not contain any coding scheme, nor a fast implementation(This code is only intended to explain the basics behind the bandelet transform, and to be able to play with the major concepts and properties of these orthogonal basis. It does not contain any coding scheme, nor a fast implementation)
- 2011-11-12 22:31:19下载
- 积分:1
-
Q-learning
matlab demo about reinforcement
- 2012-11-25 16:16:45下载
- 积分:1
-
Complex-network-matlab-example
复杂网络matlab样例(只要为sy003.m),包括求平均度,路径直径,平均路径长度,聚类系数,介数(需要加载bgl工具箱),核数,紧密度等(Complex network matlab sample (as long as it sy003.m), including the degree of averaging, the path diameter, the average path length, clustering coefficient, betweenness (bgl need to load the toolbox), auditing, tightness, etc.)
- 2016-08-12 23:03:28下载
- 积分:1
-
2DFDTDPML
2DFDTD TM波模拟仿真,采用CPML边界条件(2DFDTD TM wave simulation, the boundary conditions used CPML)
- 2010-10-16 11:30:38下载
- 积分:1