-
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
-
gausscml
GAUSSIAN COPULA ESTIMATION
- 2011-08-08 10:53:26下载
- 积分:1
-
ARMA
ARMA模态参数识别,振动信号处理应用与研究,应用MATLAB编程实现模态参数提取研究(ARMA modal parameter identification and vibration signal processing applications and research, using MATLAB programming to achieve the modal parameter extraction of)
- 2012-06-25 16:18:00下载
- 积分:1
-
stprtool
统计模式识别工具箱。包含一系列经典模式识别源代码。(Statistical Pattern Recognition Toolbox for Matlab.This toolbox implements a selection of statistical pattern recognition
methods.)
- 2012-10-12 02:00:02下载
- 积分:1
-
qengsei_v80
旋转机械二维全息谱计算,是国外的成品模型,线性调频脉冲压缩的Matlab程序。( Rotating machinery 2-d holographic spectrum calculation, Foreign model is finished, LFM pulse compression of the Matlab program.)
- 2016-09-28 20:51:55下载
- 积分:1
-
xingtaifenxi
一个实用的形态分析程序,可以将RGB形态转化为HSI!(A practical shape analysis program can be RGB form into HSI!)
- 2010-09-20 21:30:53下载
- 积分:1
-
SIMULINKkejian
ppt simulink 很好的ppt 简单易懂(ppt simulink)
- 2009-06-19 15:53:54下载
- 积分:1
-
matlab-imm
说明: 交互多模型算法,用于目标跟踪等,是目前比较理想的算法之一(Interacting multiple model algorithm)
- 2010-04-17 14:18:32下载
- 积分:1
-
my-gui-harris_corner
图像harris角点检测matlab源代码,使用说明(images harris corner detection Matlab source code, use)
- 2020-10-22 19:47:23下载
- 积分:1
-
Gas-dynamics
用来模拟粒子运动的。此元胞自动机需要
一种不同类型的元胞的邻居。此元胞的邻居时刻变化,因此某一个方向运动趋势,
将继续在同一个方向。换言之,此规则保存势头,这是基础的动力仿真。这种邻
居通常被称为 margolis邻居并且这种邻居通常由重叠的 2x2 块的元胞构成。在下
面的表格中,偶数步长时左上方 4 元胞为邻居关系,奇数步长时右下的 4 元胞为
邻居关系。某一特定元胞在每一个时间步长都有3 个邻居,但是具体的元胞构成
了邻居的旋转和反复。(Used to simulate the particle movement. The cellular automaton requires a different type of cell neighbors. This moment of change in a neighbor cell, so a certain direction the trend will continue in the same direction. In other words, this rule saved momentum, which is the foundation of the power simulation. This neighborhood is often called a neighbor and this neighbor margolis usually overlapping 2x2 blocks of cellular composition. In the following table, even when the step left four yuan for the neighbor cell, the odd step 4 when the lower right cell for the neighborhood. A particular cell in each time step has three neighbors, but the specific cellular composition of the neighbor s rotation and repeated.)
- 2011-06-30 19:58:36下载
- 积分:1