www.gusucode.com > dsp 案例源码程序 matlab代码 > dsp/EstimatedFrequencyResponseOfFilterExample.m
%% Frequency Response of the Filter % This examples plot the frequency response of the filter using |freqz|. % The filter can be a |dfilt| object or a System object(TM). %% b = fir1(80,0.5,kaiser(81,8)); hd = dfilt.dffir(b); freqz(hd); %% % |freqz| also accepts multiple filters. b = fir1(40,0.5,kaiser(41,6)); hd2 = dfilt.dffir(b); h = [hd hd2]; freqz(h);