登录
首页 » VBScript » 111

111

于 2011-05-24 发布 文件大小:1KB
0 354
下载积分: 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 个回复

  • kalman_filter
    卡尔曼滤波器的matlab实现源代码,以函数形式给出,方便使用(Kalman Filter realize matlab source code, in order to function are given, user-friendly)
    2008-04-04 10:13:59下载
    积分:1
  • MATLABPLS
    提供了MATLAb针对光谱数据分析的PLS算法(MATLAB sepctronic ’s pls)
    2009-05-26 15:12:57下载
    积分:1
  • adaptive_gtlbq
    用高通滤波器实现的自适应干扰对消器,程序很好,很实用(High-pass filter implemented with adaptive interference canceller, the program very good, very practical)
    2012-01-12 20:01:06下载
    积分:1
  • New-folder
    This code is usefull for who learn matlab for digital communication.This code is usefull for who learn matlab for digital communication.This code is usefull for who learn matlab for digital communication.This code is usefull for who learn matlab for digital communication
    2013-01-17 22:15:01下载
    积分:1
  • First-order-dynamic-circuit
    一阶动态电路通过MATLAB中GUI模块的编程实现,并绘制相应的曲线(First-order dynamic circuit module through GUI in MATLAB programming, and draw the corresponding curve)
    2011-12-27 17:07:21下载
    积分:1
  • ninvge
    this is multi level inverer,9
    2012-02-06 05:18:34下载
    积分:1
  • maxvrais
    matlab仿真最大似然估计法,简单易懂,适于初学者使用。(matlab simulation of the maximum likelihood estimation method, easy to understand, suitable for beginners to use.)
    2014-04-18 17:50:24下载
    积分:1
  • akko_test
    Akkto_test This test is really unuseful akko test
    2015-10-21 19:30:20下载
    积分:1
  • programe
    胡广书例题matlab源程序,每章节均有,比较精彩(Hu Guangshu Examples Matlab source files, each chapter is more exciting)
    2007-05-04 14:01:43下载
    积分:1
  • soumekh
    InSAS Simulation! Its wonderful
    2009-03-05 19:53:25下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载