Main Content

order

Order of discrete-time filter System object

Description

example

filtOrder = order(rcfilter) returns the order of the filter System object™. The order depends on the filter structure and the reference double-precision floating-point coefficients.

Examples

collapse all

Create a square root raised cosine (RRC) filter pair using the comm.RaisedCosineTransmitFilter and comm.RaisedCosineReceiveFilter System objects. Determine the group delay of the overall filter pair.

txrcfilt = comm.RaisedCosineTransmitFilter
txrcfilt = 
  comm.RaisedCosineTransmitFilter with properties:

                     Shape: 'Square root'
             RolloffFactor: 0.2000
       FilterSpanInSymbols: 10
    OutputSamplesPerSymbol: 8
                      Gain: 1

rxrcfilt = comm.RaisedCosineReceiveFilter
rxrcfilt = 
  comm.RaisedCosineReceiveFilter with properties:

                    Shape: 'Square root'
            RolloffFactor: 0.2000
      FilterSpanInSymbols: 10
    InputSamplesPerSymbol: 8
         DecimationFactor: 8
         DecimationOffset: 0
                     Gain: 1

groupDelay = order(txrcfilt)/2 + order(rxrcfilt)/2
groupDelay = 80

Input Arguments

collapse all

Input filter, specified as one of these of filter System objects.

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

Introduced in R2013b