-
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
-
a1
说明: 使用turboedit算法进行宽带组合和电离层组合的周跳探测,并修复。可以探测16个历元外的周跳(Using the turboedit algorithm for broadband combination and ionospheric combination of cycle jump detection and repair. Can detect 16 epoch outside the cycle)
- 2017-05-24 20:08:45下载
- 积分:1
-
sp
说明: simple shoortest path
- 2010-01-19 21:22:08下载
- 积分:1
-
MATLAB_SIMULINK
MATLAB-SIMULINK通信系统建模与仿真实例分析(MATLAB-SIMULINK communications system modeling and simulation analysis)
- 2013-11-26 16:52:49下载
- 积分:1
-
EE451LAB05-170206019
ds cdma in communication
- 2013-12-03 20:33:41下载
- 积分:1
-
4T2Rmimorate2
这是一个速率为2的mimo系统,希望大家有用(This is a rate of 2 MIMO system, hope that useful)
- 2007-12-24 08:18:51下载
- 积分:1
-
PReaad_COMTRRr
电力系统专业往往要涉及到故障数据处理,也就是解析COMTRADE格式的的数据文件.此代码完成读取COMTRADE格式文件的功能(matlab中)
(Professionals often have to power system fault data relating to treatment, that is, analyticc COMTRADE format data files. This code completion read COMTRADE format files (matlab Medium)
)
- 2012-05-09 10:01:16下载
- 积分:1
-
KSVD
本程序可用于字典学习,稀疏编码,包含MOD,OMP函数(DICTIONARY LEARNING)
- 2013-11-10 19:55:11下载
- 积分:1
-
construct_bmp
运用MATLAB语言,构造了.bmp文件,其中包含了黑白,256色以及真彩图片,加强了对于 .bmp文件的理解,及MATLAB语言对于文件的读写(The use of MATLAB language, is constructed. Bmp file, which contains black and white, 256-color and true color images, enhanced for. Bmp files to understand, and the MATLAB language for the document to read and write)
- 2010-01-19 10:01:48下载
- 积分:1
-
gss2
Golden Search Method implemented in Matlab. Searches for the mininum of a fobj.m function using finite diferences.
- 2014-06-29 15:09:09下载
- 积分:1