www.gusucode.com > dsp 案例源码程序 matlab代码 > dsp/LockedStatusOfASampleRateConverterExample.m
%% Locked Status of a Sample Rate 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. Verify that it is not locked. % Copyright 2015 The MathWorks, Inc. %% src = dsp.SampleRateConverter; no = isLocked(src) %% % Lock the converter by running |step| on random data. Verify that it is % locked. [L,M] = getRateChangeFactors(src); y = step(src,randn(M,2)); yes = isLocked(src)