!noisepw.m

来自「Digital Signal Processing Laboratory Usi」· M 代码 · 共 20 行

M
20
字号
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;enddisp('Output Noise Variance = ');disp(nvar)

⌨️ 快捷键说明

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