noisepwr2.m
来自「《数字信号处理实验指导书(MATLAB 版)》 著者: (美)米特拉著 」· 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 + -
显示快捷键?