-
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
-
EDA
分布估计算法基础的函数描述,适合初学者,介绍分布估计算法的基础知识,有MATLAB例子帮助读者理解(Estimation of distribution algorithm based function description, suitable for beginners, introduces the basic knowledge of the estimation of distribution algorithm, MATLAB examples to help readers understand)
- 2014-12-01 20:53:36下载
- 积分:1
-
TP2_140203120038
aplication using c# code
- 2014-12-03 08:27:06下载
- 积分:1
-
Hexagon-randomly-scattered-points
matlab 任意正六边形随机撒点 是通信仿真里经常用到的(Hexagon is random point is often used in the communication simulation)
- 2015-03-06 20:16:23下载
- 积分:1
-
reorder
function [s,t,q,z] = reordr(s,t,q,z)
- 2010-03-04 16:50:30下载
- 积分:1
-
pcxzzh
说明: 车辆动力特性的计算matlab程序,利用matlab实现计算车辆动力特性(The vehicle dynamic characteristics calculation matlab program,using MATLAB to realize the calculation of vehicle dynamic characteristics )
- 2014-08-25 14:54:15下载
- 积分:1
-
huise_qiuguanliandu
matlab求灰色关联度,并对关联度进行排序(matlab seek the gray relational grade, and the associated degree of sorting)
- 2012-08-16 11:37:00下载
- 积分:1
-
gatbx
MATLAB遗传算法的算例。比较详细。里面使用了matlab里的遗传算法工具箱。(MATLAB genetic algorithm example. More detailed.)
- 2009-11-06 22:45:25下载
- 积分:1
-
Fully-Controlled-DC-Motor
This is the matlab simulation of fully controlled DC Motor.
- 2011-12-16 04:01:40下载
- 积分:1
-
sybolrat
MIMO符号速率变化设定仿真,主要针对OFDM调制(MIMO symbol rate change settings)
- 2010-06-03 17:42:17下载
- 积分:1