-
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
-
PCA
邓蔡写的PCA算法,很详细,值得初学者借鉴(DengCai write PCA algorithm, very detailed, is worth reference for beginners)
- 2012-04-21 23:01:06下载
- 积分:1
-
filternotch
说明: 用于信号滤波,要事先给出滤波器系数,给出心电加上正弦干扰信号的滤波过程。(For signal filtering, to filter coefficients is given in advance, given ECG+ sinusoidal interference signal filtering process.)
- 2010-04-10 22:47:27下载
- 积分:1
-
mimo2by2qam16withofdm
sim mobile communication 4G using ofdm & mimo technology 2*2 and modulation 16-QAM simulink matlab
- 2016-08-20 23:56:46下载
- 积分:1
-
chengxu
BP神经网络源代码 matlab编写程序(BP network)
- 2015-01-14 12:38:42下载
- 积分:1
-
dtmf2
dtmf simulation with the use of simulink and filting
- 2012-05-17 16:14:10下载
- 积分:1
-
matlab_hide_infomation
利用mathlab进行信息隐藏的源代码文件,包含对信息的隐藏和提取,随机分布存储(The use of information hiding mathlab source code files, including hidden and extraction of information, random distribution of storage)
- 2009-12-02 13:28:10下载
- 积分:1
-
matlab_example
第二版数字信号处理实验指导书的实验的程序(Digital signal processing second edition of the experimental procedure)
- 2010-12-16 20:49:23下载
- 积分:1
-
AFC
说明: 频率偏差估计由信道参数估计和频率偏差估计两部分组成 环路滤波器设计(Frequency offset is estimated by the channel parameter estimation and frequency offset is estimated that two-part loop filter design)
- 2009-08-28 10:55:42下载
- 积分:1
-
feiemom
说明: matlab 矩量法编程啊 不错的东西 可以看看啊啊 (method of moments matlab programming ah ah ah good things to look at)
- 2011-04-05 13:43:40下载
- 积分:1