order
Order of discrete-time filter System object
Syntax
Description
Examples
Determine Filter Order
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
Input Arguments
sysobj
— Input filter
filter System object
Input filter, specified as one of the following filter System objects:
Output Arguments
n
— Filter order
scalar
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
See Also
Open Example
You have a modified version of this example. Do you want to open this example with your edits?
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)