www.gusucode.com > dsp 案例源码程序 matlab代码 > dsp/DefaultResamplingFactorsExample.m

    %% Default Resampling Factors
% Create |src|, a multistage sample rate converter with default properties.
% |src| combines three filter stages to convert from 192 kHz to 44.1 kHz.
% Determine its overall interpolation and decimation factors.

% Copyright 2015 The MathWorks, Inc.


%%

src = dsp.SampleRateConverter;
[L,M] = getRateChangeFactors(src)