登录
首页 » VBScript » 111

111

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

  • addell
    matlab实现的椭圆曲线点加函数(matlab realize the elliptic curve point increase in function)
    2008-02-24 23:47:06下载
    积分:1
  • Discrete_Cosine_code
    用matlab实现的离散余弦编码,主要通过离散余弦编码的原理,用matlab实现的源代码。(Using matlab realize the discrete cosine coding, discrete cosine, mainly through the principle of encoding, using matlab realize the source code.)
    2008-05-14 12:41:57下载
    积分:1
  • tank
    fuzzy code in matlab
    2011-10-17 22:27:33下载
    积分:1
  • vector_quantization-algorithm
    Vector quantization algorithm is one of the best clustering algorithms for multidimensional signals
    2011-04-23 22:20:30下载
    积分:1
  • ex1
    hamming code 编码与解码,在编码理论中占据着极其重要的地位(hamming encoding and decoding)
    2011-12-07 12:11:58下载
    积分:1
  • modelock
    自己编写锁模激光程序,有些不完善的地方请见谅(Local mode-locked laser to write your own program, please forgive me some imperfect)
    2016-03-21 11:26:03下载
    积分:1
  • code
    本代码主要实现了基于双字典交叉稀疏表示的SAR图像变化检测的功能。(This code mainly realize the function of SAR image change detection is based on the double cross dictionary sparse representation.)
    2015-03-15 12:03:22下载
    积分:1
  • FUZZY
    模糊自整定PID控制器设计。 本资料含有详细的PID控制器算法M文件、Simulink模型搭建、模糊控制器设计以及相应的技术文档分析。相信对您一定很有帮助(Fuzzy self-tuning PID controller design. This information contains details of the PID controller algorithm M files, Simulink models to build, fuzzy controller design and analysis of relevant technical documentation. I believe you must be helpful)
    2015-04-10 15:54:49下载
    积分:1
  • Denoising
    this code tells how to do denoising an image
    2010-07-28 21:18:19下载
    积分:1
  • BPSK_Rayleigh
    Bit Error Rate for BPSK Modulation in Rayleigh Channel
    2011-01-24 16:22:01下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载