代码: 子函数ampl_res function [Hr,w,P,L] = ampl_res(h); % % function [Hr,w,P,L] = Ampl_res(h) % Computes Amplitude response Hr(w) and its polynomial P of order L, % given a linear-phase FIR filter impulse response h. % The type of filter is determined aut…