登录
首页 » VBScript » 111

111

于 2011-05-24 发布 文件大小:1KB
0 334
下载积分: 1 下载次数: 3

代码说明:

  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) )

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • source_matlab
    利用微分方程的相关算法检测仪表盘的matlab程序(Detection of differential equations of the correlation algorithm matlab program dashboard)
    2010-11-23 14:42:24下载
    积分:1
  • bresenham_line3d
    采用3D Bresenham算法在两点间划一直线 % This program is ported to MATLAB from: % B.Pendleton. line3d - 3D Bresenham s (a 3D line drawing algorithm) % ftp://ftp.isc.org/pub/usenet/comp.sources.unix/volume26/line3d, 1992 % % Which is referenced by: % Fischer, J., A. del Rio (2004). A Fast Method for Applying Rigid % Transformations to Volume Data, WSCG2004 Conference. % http://wscg.zcu.cz/wscg2004/Papers_2004_Short/M19.pdf (3D Bresenham algorithm used in a straight line between two points This program is ported to MATLAB from: B. Pendleton. Line3d- 3D Bresenham s (a 3D line drawing algorithm) ftp://ftp.isc.org/pub/usenet/comp.sources.unix/volume26/line3d, 1992 Which is referenced by: Fischer, J., A. del Rio (2004). A Fast Method for Applying Rigid Transformations to Volume Data, WSCG2004 Conference. http :// wscg.zcu.cz/wscg2004/Papers_2004_Short/M19.pdf)
    2020-09-01 20:18:08下载
    积分:1
  • pingfanglvjianbo
    给出了平方率检波下,求检测门限值的程序。(Gives the square of the rate of detection, the detection threshold seeking procedure.)
    2009-10-19 16:13:40下载
    积分:1
  • ondas
    Fourie series. Waves with sines and cosines. Square wave, sawtooth wave, etc. Very usefull.
    2013-11-03 07:58:20下载
    积分:1
  • BeamwidthCalculator
    matalb仿真频率变化对相控阵雷达的天线增益带来的影响,并画图进行分析(Effect of antenna gain MATALB simulation of phased array radar frequency change brings, and drawing analysis)
    2015-01-18 14:55:09下载
    积分:1
  • xyz2blh
    MATLAB 空间直角坐标系与大地坐标系转换(MATLAB space rectangular geodetic coordinate system conversion)
    2012-10-19 13:24:25下载
    积分:1
  • -Wireless-Mesh-
    一种适用于无线Mesh骨干网络的负载均衡路由算法(One for Wireless Mesh backbone network load balancing routing algorithm)
    2013-12-14 18:55:35下载
    积分:1
  • SNDR
    Calculate SNDR of ADCs
    2011-12-23 23:45:31下载
    积分:1
  • btreeP
    Note: Text content in the code blocks is automatically word-wrapped. * This private inorder method recursively traverses a binary tree in
    2014-11-18 14:05:09下载
    积分:1
  • termproject
    rand, randn, randint.... you can understand my code
    2015-06-06 13:57:36下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载