-
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
-
0.618-gold
0.618法求y=sin(x)在[0,2]极大值点(0.618 method y = sin (x) in [0, 2] the maximum points)
- 2015-04-16 16:29:15下载
- 积分:1
-
image-forgery-with-siftand-ransac
the folder gives information about the image forgery detection. detection is made by examining the sift and ransac features of the image. color processing is done as a preprocessing step.
- 2014-03-11 13:18:42下载
- 积分:1
-
Park_transformation
一个用于三相电源的Park变换的说明程序(Park conversion for three-phase power )
- 2014-08-19 13:32:11下载
- 积分:1
-
MOTAILIFA(bukaolvouhe)
不考虑模态耦合项的多阶模态力法,是楼文娟文章中的程序(Without considering modal coupling term multi-modal legislation, LOU Wen-juan article in the program)
- 2020-11-11 15:19:45下载
- 积分:1
-
PID2
说明: 传统PID控制matlab程序,希望对大家有所帮助,共同学习。(Traditional PID control matlab program, I hope all of you to help, learning together.)
- 2021-02-03 15:39:59下载
- 积分:1
-
2DLDA
说明: 一篇基于人脸识别的2dlda代码 各位给点意见(A code based on face recognition 2dlda you to the point)
- 2010-04-12 20:37:06下载
- 积分:1
-
rbf_gzlsd
说明: 软测量氧含量原始数据及matlab工况聚类代码(Measuring the oxygen content of soft raw data and clustering matlab code condition)
- 2011-04-13 14:44:49下载
- 积分:1
-
snr
计算信噪比,计算公式是信号能量比上噪声能量(SNR Calculation,signal power divide noise power)
- 2011-08-19 16:14:22下载
- 积分:1
-
Matlab
matlab经典教材,从入门到精通,大家都在用(matlab classic textbook, from entry to the master, everyone with)
- 2012-09-16 18:32:49下载
- 积分:1