登录
首页 » VBScript » 111

111

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

  • exam8_001
    说明:  本程序采用平面梁单元计算两铰抛物线拱的自由振动特性,希望对学习有限元及程序设计有帮助。(The program uses two hinged planar beam element calculation of the free vibration characteristics of the parabolic arch, the finite element and want to learn programming help.)
    2010-04-10 17:02:23下载
    积分:1
  • 2
    说明:  this module gives a basic image compression example
    2009-10-24 17:36:30下载
    积分:1
  • yiqunsuanfa
    蚁群算法程序,我用过的人,根据具体情况,修改一些参数就可得结果(Ant colony algorithm program, I used people, depending on the circumstances, the results obtained can modify some parameters)
    2015-03-24 11:26:22下载
    积分:1
  • radar
    说明:  雷达信号处理,包括CFAR检测,脉冲压缩等过程。(radar detection and signal dealing, including the CFAR, and pulse compression)
    2020-06-25 18:40:01下载
    积分:1
  • moments
    利用matlab将输入的rgb图像转化为灰度图像后,利用阈值求的二值图像,边缘算子求的边缘图像,边缘图像求归一化不变矩,Hu矩。(Matlab input rgb image to grayscale image, using the binary image threshold seeking child seeking the edge of the image, the edge operator, the edge of the image seeking normalized invariant moments, Hu moments.)
    2012-04-08 22:05:30下载
    积分:1
  • Hough(matlab)
    Hough变换的matlab代码,可以参考学习,希望对需要的朋友有所帮助(Hough Transform Matlab code, we can make reference to learning, and I hope to a friend in need of some help)
    2006-10-31 09:35:46下载
    积分:1
  • Normalization
    this file represent normalization in binary normalization, bipolar normalization and lda using matlab
    2012-05-08 23:10:03下载
    积分:1
  • transition
    先去取两区四机系统的潮流,然后通过设置求取不同情况的下的暂态程序,并得出波形(To go to take the trend of the two four-machine system, and then strike a transient program under different circumstances, and draw the waveform by setting)
    2021-04-15 23:48:54下载
    积分:1
  • 聚类分析
    说明:  马氏距离函数,输入两个序列号计算马氏距离(Mahalanobis distance function, input two serial numbers to calculate Mahalanobis distance)
    2020-03-25 14:58:36下载
    积分:1
  • dpskmod
    好消息,这里有用matlab做的DPSK的调制的源代码,有需要的请直接到这里下载(Good News, here useful matlab to do the DPSK modulation of the source code, there is a need to please here to download directly to the)
    2007-10-24 20:22:47下载
    积分:1
  • 696518资源总数
  • 104976会员总数
  • 7今日下载