%% Release an IIR Halfband Interpolator
% 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 interpolator with default properties. Call the algorithm and verify that the IIR halfband interpolator is locked.

IIRHalfbandInterp = dsp.IIRHalfbandInterpolator;

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

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

release(IIRHalfbandInterp)

isLocked(IIRHalfbandInterp)

% Copyright 2012 The MathWorks, Inc.