Main Content

order

Order of discrete-time filter System object

Description

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.

Examples

collapse all

Design a compensation decimator for a CIC decimator using the dsp.FilterCascade object. Determine the order of the overall filter.

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

Output Arguments

collapse all

Filter order, returned as a scalar. The order depends on the filter structure and the reference double-precision floating-point coefficients.

Data Types: double

Version History

Introduced in R2011a

expand all

See Also