-
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
-
footprint
matlab实现的视频指纹采集,可以用指纹来辨别两个视频是否相似(matlab achieve video fingerprint acquisition, can be used fingerprints to identify the two video whether similar)
- 2013-03-14 17:02:28下载
- 积分:1
-
sofm
A self-organizing map (SOM) or self-organizing feature map (SOFM) is a type of artificial neural network (ANN) that is trained using unsupervised learning to produce a low-dimensional (typically two-dimensional)
- 2013-11-08 16:42:04下载
- 积分:1
-
MEEM_v1.1_release
MEEM跟踪算法,多专家目标跟踪算法,实现目标的在线跟踪!(Main code of MEEM tracker)
- 2021-04-01 09:49:08下载
- 积分:1
-
A2
说明: Function files in MATLAB for the calculation of strains and stresses for a lamina with a given arbitrary fiber orientation and given values of material data in the principal material directions.
- 2011-01-27 07:09:35下载
- 积分:1
-
Aihara
这个是经典Aihara混沌神经网络模型的程序(This is a classic Aihara chaotic neural network model procedures)
- 2006-10-27 10:54:12下载
- 积分:1
-
yy
说明: 用MATLAB做得fft谱分析,非常的好用。需要做这方面试验的,可以看看。(Fft done using MATLAB spectral analysis, very easy to use. Test needs to be done in this area, you can look at.)
- 2008-12-18 23:34:18下载
- 积分:1
-
circle
演示椭圆的曲率圆的动画。该程序演示了椭圆各点的曲率变化及相应的曲率圆圆心的轨迹。(Demonstration of the curvature ellipse circle animation. The program demonstrates the various points of the curvature of the ellipse and the corresponding changes in the curvature of the round locus of the center.)
- 2010-03-06 23:48:31下载
- 积分:1
-
2degreeinter
说明: 最优化理论与方法课本算法matlab实现
二次插值法,包括抛物线插值和三点二次插值
具体使用方法详见程序说明(Optimization theory and methods of textbooks matlab algorithm to achieve quadratic interpolation, including the parabolic interpolation, and 3.2 times the specific use of interpolation methods detailed description of the procedures)
- 2010-03-19 16:53:10下载
- 积分:1
-
CLSPSO
matlab 最优化算法matlab 最优化算法matlab 最优化算法matlab 最优化算法(matlab zuiyouhau suanfa )
- 2012-03-28 14:56:26下载
- 积分:1