-
111
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) )
- 2011-05-24 15:39:41下载
- 积分:1
-
HideAndShowTaskbar
使用Visual Basic
使用将Taskbar隐藏和显示的API(use Visual Basic to use and display Taskbar hiding API)
- 2007-03-28 16:24:51下载
- 积分:1
-
myradoncom
\this file contains the matlab file for radon function with its c file. to run on matlab compile the file using c++ compiler to convert c file into mex file.
- 2011-09-29 00:22:08下载
- 积分:1
-
sy2
(1) 分别采集一段浊音和清音语音信号(是你自己说的),采样率为8KHZ,量化精度为16比特线性码;
(2) 分析帧长取为30ms(或10ms~50ms);
(3) 根据语音信号倒谱分析和LPC谱分析的编程流程图(图2.1、图2.2)编制浊音语音信号谱分析的matlab程序,上机调试给出相应波形,并根据图形,观察共振峰情况;
(4) 将语音信号换为清音语音,运行程序,与浊音语音的运行结果进行比较,并得出结论。
(5) 在LPC谱分析中,改变阶数p (p分别等于4、8、12、40)时,观察对谱包络的影响,并与信号谱(DFT谱)进行比较。
( voice signal processing)
- 2020-11-17 16:59:41下载
- 积分:1
-
durbin
这是个用Durbin递归求预测误差滤波器和他的输出,是电子所邹谋炎老师给出的例程。(This is a demand by Durbin recursive prediction error filter, and his output is of Electronics Zou Mou-Yan teachers given routine.)
- 2007-07-20 11:07:05下载
- 积分:1
-
communicationMATLAB
现代通信系统matlab程序大全,希望对大家有所帮助(Matlab program Daquan modern communication systems, we want to help)
- 2010-07-09 17:36:49下载
- 积分:1
-
TA
说明: 对图像进行TA置乱,请根据图像大小自行设定周期。(TA scrambling the image, the image size according to set their own cycle.)
- 2011-02-24 10:09:52下载
- 积分:1
-
BLIND
说明: IBD算法源代码 能够让初学者很好的了解IBD算法(blind image restoration)
- 2011-04-07 16:45:45下载
- 积分:1
-
ACO_feature_selection
This is an application of ant colony optimization. ACO is used to find the shortest path
- 2014-09-02 16:03:36下载
- 积分:1
-
firfilt
firfilt.m for filtering
- 2011-11-05 17:35:45下载
- 积分:1