登录
首页 » VBScript » 111

111

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

  • Best_Learn_Matlab_8.9901
    LEARN MATLAB MARM MKWEW OWETWOW JWETWTJWO OTW
    2009-10-07 15:32:10下载
    积分:1
  • x1
    说明:  声音信号 显示 时域 频域 对声音的预处理观察
    2009-05-25 13:14:22下载
    积分:1
  • lanczos1
    说明:  利用lanczos输注特征值,特征向量,尽请指正(Lanczos infusion using eigenvalue)
    2010-04-14 20:13:34下载
    积分:1
  • Foundations-of-Fuzzy-Control---A-Practical-Approa
    Foundations of Fuzzy Control - A Practical Approach (2e) Chapter 1
    2015-02-07 12:14:03下载
    积分:1
  • weifenxianxing
    微分先行式的PID调试程序 matlab的M文件(PID differential first debugger matlab-style M-file)
    2010-01-06 11:38:41下载
    积分:1
  • BPSK
    说明:  在通信系统中的BPSK调制和解调源代码,在现实中用处非常大(In the communication system in the BPSK modulation and demodulation source code, in reality, use very large)
    2010-03-23 12:53:23下载
    积分:1
  • Wind_Turbine_Model_R2012b
    wind turbine model in 12
    2013-02-08 03:15:46下载
    积分:1
  • PCA111
    PCA和KPCA综合运用,用于故障检测与诊断,希望对你有用(Integrated use of PCA and KPCA for fault detection and diagnosis have a good monitoring results, you want to be useful)
    2011-10-20 22:54:56下载
    积分:1
  • 雷达信号瞬时自相关处理 instant_autocorrelation
    雷达信号瞬时自相关处理,计算信号瞬时频率,计算雷达信号参数等(instant auto-corelation)
    2012-03-02 21:33:47下载
    积分:1
  • e0c017a5db62
    经典谱估计,平均功率法,周期图法,bt算法,代码清晰明了,还配有注释(Classical spectrum estimation, the average power method, periodogram, bt algorithm code clarity, comes with comments)
    2015-06-12 14:30:21下载
    积分:1
  • 696516资源总数
  • 106409会员总数
  • 8今日下载