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

    %% Release a Lowpass Filter
% Create a lowpass filter with default properties. Run |step| on the 
% object. Verify that the lowpass filter is locked.

% Copyright 2015 The MathWorks, Inc.


%%
LPF = dsp.LowpassFilter;

y = step(LPF,randn(10,2));
Lockstatus = isLocked(LPF)

%%
% Release the lowpass filter and verify that it is unlocked.

release(LPF)

Lockstatus = isLocked(LPF)