%% Release an IIR Halfband Decimator
% Note: This example runs only in R2016b or later. If you are using an earlier release, replace each call to the function with the equivalent  step syntax. For example, myObject(x) becomes step(myObject,x).
% Create an IIR halfband decimator with default properties. Run step on the object. Verify that the IIR halfband decimator is locked.

IIRHalfbandDecim = dsp.IIRHalfbandDecimator;

y = IIRHalfbandDecim(randn(10,2));
isLocked(IIRHalfbandDecim)

%
% Release the IIR halfband decimator and verify that it is unlocked.

release(IIRHalfbandDecim)

isLocked(IIRHalfbandDecim)

% Copyright 2012 The MathWorks, Inc.