-
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
-
mpeg-coding
mpeg object based coding in matlab
- 2013-04-30 17:07:32下载
- 积分:1
-
CCFdemo
一个matlab time dot main cross-correlation, 解压后在matlab里运行即可,可计算各种数字信号的延迟,没有密码(a Matlab time dot main cross-correlation , unpacked were operating in Matlab can, translate various digital signal delays, no password)
- 2006-09-29 18:37:11下载
- 积分:1
-
gasanzhongcaozuosuanzidegaijin
ga三中操作算子的改进,可以基于此版本根据自己的实际需要进行修改,然后应用(ga Operator III improvements, this version can be based on the actual needs in accordance with their own modifications, and then the application of)
- 2009-02-07 12:09:01下载
- 积分:1
-
program18
振动原理与分析计算机大作业
求解非线性振动分析,公式根据书中的
用计算方法的4阶 r-k数值方法(Vibration theory and analysis of computer operations for solving large non-linear vibration analysis of the formula calculation method according to the book of 4-order numerical method rk)
- 2010-02-09 03:35:03下载
- 积分:1
-
Dijkstra
Dijkstra算法是典型最短路算法,用于计算一个节点到其他所有节点的最短路径。主要特点是以起始点为中心向外层层扩展,直到扩展到终点为止(Dijkstra' s algorithm is a typical shortest path algorithm used to calculate a node to all other nodes of the shortest path. Main features is the starting point for the center layers expand outward until the end date extended to)
- 2011-07-20 19:56:45下载
- 积分:1
-
HHTmatlab
希尔伯特-黄变换的matlab程序,简洁明了、特别适合初学者。(hirblert huang transfer)
- 2012-07-23 13:30:39下载
- 积分:1
-
ERTIJISHUAN
这是一个进行卫星轨道程序,二体问题卫星的瞬时轨道根数的输入及预报的输出(Two-body problem)
- 2013-12-16 22:57:29下载
- 积分:1
-
BD2B1_Acquisition
北斗二代B1频点接收机捕获Matlab源代码(BD2B1 Matalab Receiver)
- 2013-11-25 20:49:44下载
- 积分:1
-
svm_v0[1].55beta.tar
用于进行所谓的支持向量机的分析,关键是对信号进行分类,用于处理非线性非平稳信号(used for the so-called support vector machines, the key is the signal classification for handling nonlinear non-stationary signals)
- 2007-01-18 15:40:16下载
- 积分:1