This is machine translation

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

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Get number of stages in filter cascade





getNumStages(FC) returns the number of stages in the dsp.FilterCascade object, FC.


collapse all

This example shows how to query the number of stages in a filter cascade.

Create a filter cascade with two stages and call getNumStages on the cascade object.

    FC = cascade(dsp.FIRFilter,dsp.IIRFilter)
FC = 
  dsp.FilterCascade with properties:

    Stage1: [1x1 dsp.FIRFilter]
    Stage2: [1x1 dsp.IIRFilter]

    FCstages = getNumStages(FC)
FCstages = 2

Input Arguments

collapse all

Filter cascade, specified as a dsp.FilterCascade System object™.

Introduced in R2014b