This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Multistage filter from specification object


msFilter = design(d,'multistage','SystemObject',true)
msFilter = design(...,'filterstructure',structure,'SystemObject',true)
msFilter = design(...,'nstages',nstages,'SystemObject',true)
msFilter = design(...,'usehalfbands',hb,'SystemObject',true)


msFilter = design(d,'multistage','SystemObject',true) designs a multistage filter whose response you specified by the filter specification object d.

msFilter = design(...,'filterstructure',structure,'SystemObject',true) returns a filter with the structure specified by structure. Input argument structure is dffir by default and can also be one of the following options.


Valid with These Responses


Lowpass or Nyquist response


Lowpass or Nyquist response


Lowpass or Nyquist response


Default lowpass only

Multistage design applies to the default lowpass filter specification object and to decimators and interpolators that use either lowpass or Nyquist responses.

msFilter = design(...,'nstages',nstages,'SystemObject',true) specifies nstages, the number of stages to be used in the design. nstages must be an integer or auto. To allow the design algorithm to use the optimal number of stages while minimizing the cost of using the resulting filter, nstages is auto by default. When you specify an integer for nstages, the design algorithm minimizes the cost for the number of stages you specify.

msFilter = design(...,'usehalfbands',hb,'SystemObject',true) uses halfband filters when you set hb to true. The default value for hb is false.


To see a list of the design methods available for your filter, use designmethods(hd).


collapse all

This example designs a minimum-order, multistage Nyquist interpolator.

l = 15;   % Interpolation factor. Also the Nyquist band.
tw = 0.05; % Normalized transition width
ast = 40;   % Minimum stopband attenuation in dB
d = fdesign.interpolator(l,'nyquist',l,'tw,ast',tw,ast);
msMinInterp = design(d,'multistage','SystemObject',true);

Design a multistage lowpass interpolator with an interpolation factor of 8.

m = 8;
d = fdesign.interpolator(m,'lowpass');
% Use halfband filters if possible.
msInterp = design(d,'multistage','Usehalfbands',true,'SystemObject',true);

See Also


Introduced in R2011a

Was this topic helpful?