⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 noisepwr2.m

📁 《数字信号处理实验指导书(MATLAB 版)》 著者: (美)米特拉著 作译者: 孙洪等译 ISBN号: 7-121-00700-2 出版日期: 2005-01 出版社:电子工业出
💻 M
字号:
function nvar = noisepwr2(num,den)
% Computes the approximate output noise variance due
% to input quantization of a digital filter
% by summing the square of the impulse response samples
%
% num and den are the numerator and denominator
% polynomial  coefficients of the IIR transfer function
%
x = 1;
order = max(length(num),length(den))-1;
si = [zeros(1,order)];
nvar = 0; k = 1;
while k > 0.0000001
	[y,sf] = filter(num,den,x,si);
	si = sf; k = abs(y)*abs(y);
	nvar = nvar + k;
	x = 0;
end
disp('Output Noise Variance = ');disp(nvar)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -