Variable-Size Signal Support Example
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 a dsp.FIRHalfbandDecimator System object™. The input signal contains 10 channels, with 1000 samples in each channel.
FIRHalfband = dsp.FIRHalfbandDecimator; input = randn(1000,10);
Lock the object by running the algorithm.
output = FIRHalfband(input); isLocked(FIRHalfband)
ans = logical 1
Change the frame size of the input to 800 without releasing the object.
input = randn(800,10); output = FIRHalfband(input);
The System object runs without error.