getNumStages

Get number of stages in filter cascade

Description

example

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

Examples

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