Order of discrete-time filter System object
n = order(sysobj)
example
n = order(sysobj) returns the order n of the filter System object™. The order depends on the filter structure and the reference double-precision floating-point coefficients.
n
sysobj
collapse all
Design a compensation decimator for a CIC decimator using the dsp.FilterCascade object. Determine the order of the overall filter.
dsp.FilterCascade
cicdecim = dsp.CICDecimator('DecimationFactor', 6, ... 'NumSections', 6); fs = 16e3; % Sampling frequency of input of compensation decimator fPass = 4e3; % Passband frequency fStop = 4.5e3; % Stopband frequency ciccomp = dsp.CICCompensationDecimator(cicdecim, ... 'DecimationFactor', 2, ... 'PassbandFrequency', fPass, ... 'StopbandFrequency', fStop, ... 'SampleRate', fs); filtchain = dsp.FilterCascade(cicdecim, ciccomp); order(filtchain)
ans = 648
Input filter, specified as one of the following filter System objects:
dsp.AllpassFilter
dsp.AllpoleFilter
dsp.BiquadFilter
dsp.Channelizer
dsp.CICCompensationDecimator
dsp.CICCompensationInterpolator
dsp.CICDecimator
dsp.CICInterpolator
dsp.CoupledAllpassFilter
dsp.Differentiator
dsp.FarrowRateConverter
dsp.FIRDecimator
dsp.FIRFilter
dsp.FIRHalfbandDecimator
dsp.FIRHalfbandInterpolator
dsp.FIRInterpolator
dsp.FIRRateConverter
dsp.FourthOrderSectionFilter
dsp.HighpassFilter
dsp.IIRFilter
dsp.IIRHalfbandDecimator
dsp.IIRHalfbandInterpolator
dsp.LowpassFilter
dsp.NotchPeakFilter
dsp.SOSFilter
dsp.VariableBandwidthFIRFilter
dsp.VariableBandwidthIIRFilter
Filter order, returned as a scalar. The order depends on the filter structure and the reference double-precision floating-point coefficients.
Data Types: double
double
info | nstates
info
nstates
You have a modified version of this example. Do you want to open this example with your edits?