登录
首页 » VBScript » 111

111

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

  • xingtaitezheng
    医学图像的四个纹理特征的matlab程序(Medical images of the four texture features matlab program)
    2009-01-07 14:04:24下载
    积分:1
  • 03
    说明:  matlab基础教学系列4,一步一步一步一步教学系列(the door to matlab)
    2012-04-23 20:34:16下载
    积分:1
  • hu
    说明:  胡氏不变矩,matlab程序,稳定运行,能区分两张图片的不同(Hu invariant moments, matlab program, stable operation, can distinguish between two different images)
    2014-12-12 15:23:18下载
    积分:1
  • lpc_basedon_matlab
    lpc线性预测编码的matlab实现。其中包含原始数据文件和合成语音文件。程序合理易懂。(linear predictive coding of lpc matlab implementation. Which contains the original data file and the synthesized voice files. Procedures reasonably easy to understand.)
    2020-12-15 22:49:13下载
    积分:1
  • 2-ASKfangzhenchuli
    引入示波器的数据 仿真结果处理程序 滤波后的波形 相干解调后的波形(The simulation results into the oscilloscope data processing coherent demodulation waveform after filtering the waveform after)
    2010-05-29 13:58:31下载
    积分:1
  • UNITARY-ESPRIT-angle-estimate
    面阵中二维角度估计 UNITARY -ESPRIT算法MATLAB程序(Two-dimensional planar array angle estimation UNITARY-ESPRIT algorithm based on MATLAB program)
    2013-09-11 09:31:40下载
    积分:1
  • y
    说明:  自适应陷波器,的一种实现方法。乐意欢迎大家分享(Adaptive notch filter, a realization method. Pleased to welcome you to share)
    2010-01-21 14:19:41下载
    积分:1
  • fft
    matlab程序,FFT变换matlab程序,有助于初学者学习(matlab program,it will help u to study)
    2011-06-06 19:38:12下载
    积分:1
  • NLMS
    自适应滤波中的一个比较有名的方法,为学习者提高编程能力!(matlab adaptive filter!)
    2021-03-18 13:39:20下载
    积分:1
  • fuzzy
    模糊逻辑的几个应用举例。 《matlab辅助模糊系统设计》(Several application examples of fuzzy logic. " Matlab auxiliary fuzzy system design" )
    2010-07-20 13:40:01下载
    积分:1
  • 696518资源总数
  • 106155会员总数
  • 8今日下载