-
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
-
matlab
里边包含了一个如何区分6和9的代码以及用最小距离法、梯度法以及K-NN方法对样本进行的分类代码(Inside contains an example of how to distinguish between 6 and 9, as well as the code with the minimum distance method, the gradient method and K-NN method for sample classification codes)
- 2014-12-11 23:12:22下载
- 积分:1
-
4-20
矩阵的运算,提供了几个不错的矩阵例子,来自matlab教程(Matrix calculations, provides several good matrix example, matlab tutorial)
- 2015-01-09 10:34:12下载
- 积分:1
-
waveIn-API
An example of the German enigma encryption technology COOL
- 2015-02-17 02:01:26下载
- 积分:1
-
newton
codigos sacar ecuacione ewton
- 2013-11-27 03:58:01下载
- 积分:1
-
leach
已修改调试,可以运行.有图像结果,易以观察结果(it can be used in matlab, because it have amend.)
- 2011-04-19 16:32:23下载
- 积分:1
-
TEST
分布式发电并网的simulink仿真文件,还行,自己弄的。比较简单。(Distributed power grid of the simulink simulation files, a line still, himself. Quite simple.
)
- 2013-01-09 18:12:34下载
- 积分:1
-
simulink
simulink中的模块中中英文对照,十分详细,各个模块都有(The Chinese and English versions of the module simulink, very detailed, each module)
- 2012-05-15 15:34:24下载
- 积分:1
-
mubanpipeie-m
基于互相关模板匹配的matlab源代码,欢迎有需要的下载(Based on cross-correlation template matching matlab source code, welcome to the needs of downloads)
- 2015-10-02 19:30:45下载
- 积分:1
-
设计以遗传算法为根据的网络节点部署,从而提高传感器节点的部署覆盖范围,提高无线传感器网的网络性能
说明: 设计以遗传算法为根据的网络节点部署,从而提高传感器节点的部署覆盖范围,提高无线传感器网的网络性能。(Designing a genetic algorithm-based network deployment)
- 2020-03-01 18:16:08下载
- 积分:1