www.gusucode.com > dsp 案例源码程序 matlab代码 > dsp/FrequencyResponseOfDefaultConverterExample.m
%% Frequency Response of Default Converter % Create a multistage sample rate converter with default properties, % corresponding to the combined three filter stages used to convert from % 192 kHz to 44.1 kHz. Compute and display the frequency response. % Copyright 2015 The MathWorks, Inc. src = dsp.SampleRateConverter; [H,f] = freqz(src); plot(f,20*log10(abs(H))) %% % Compute and display the frequency response over the range between 20 Hz % and 44.1 kHz. f = 20:10:44.1e3; [H,f] = freqz(src,f); plot(f,20*log10(abs(H)))