-
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
-
Light-reflection
光学仿真-光学仿真实验-光学仿真-光学仿真实验(Optical Simulation- Simulation optics- Optical simulation- Optical Simulation)
- 2011-11-14 14:59:42下载
- 积分:1
-
Raadar-detection
Raadar detection aLGORITHM
- 2014-02-20 08:41:23下载
- 积分:1
-
test_DEE_1
DEE model is use to define the model
- 2011-02-10 22:04:39下载
- 积分:1
-
FCV_powertrain_2010
FCHV POWERTRAIN MATLAB/simulink模型,包括燃料电池模型,发动机模型,电动机模型,能量管理系统模型(FCHV POWERTRAIN MODEL)
- 2021-02-26 10:59:37下载
- 积分:1
-
MLP
MLP 1-layer Nueral Network
- 2012-05-19 05:52:28下载
- 积分:1
-
AsyLnCPSO
异步变化的学习因子的粒子群算法,学习因子在优化过程中随时间变化(AsyLnCPSO)
- 2010-09-02 16:22:00下载
- 积分:1
-
syxgj
发送单极性码元,经过升余弦滚降,画出功率谱和眼图。(this code, or after Cosine paint power spectrum and eye diagram.)
- 2007-05-17 17:24:51下载
- 积分:1
-
spectra
麦克风阵 + 波束形成 后Wiene滤波 (Microphone array+ beamforming after Wiene filtering)
- 2013-03-26 21:51:26下载
- 积分:1
-
gravity
区域重力资料解释中的重要任务之一,是计算基底构造及莫霍面的构造(本文统称为基线构造)(Regional gravity data interpretation of the important tasks is to calculate the basement structure and Moho structure (herein collectively referred to as the baseline configuration))
- 2013-11-21 23:44:00下载
- 积分:1