Main Content

isfir

Verify if filter System object is FIR

Description

example

flag = isfir(sysobj) determines whether the filter System object™ is an FIR filter. If the filter is an FIR filter, isfir returns 1.

To determine whether sysobj is an FIR filter, the isfir function inspects if the filter in the transfer function form has a scalar denominator. If it does, it is an FIR filter.

Examples

collapse all

Design a Lowpass FIR Filter.

d = fdesign.lowpass;
h = design(d,'Systemobject',true)
h = 
  dsp.FIRFilter with properties:

            Structure: 'Direct form'
      NumeratorSource: 'Property'
            Numerator: [1x43 double]
    InitialConditions: 0

  Show all properties

Determine if the filter is an FIR filter using the isfir function.

isfir(h)
ans = logical
   1

isfir returns 1 to indicate that the filter is an FIR filter.

Output Arguments

collapse all

Flag to determine whether the filter is FIR, returned as a logical scalar. If the filter is FIR, isfir returns a logical 1, else it returns a logical 0.

Data Types: logical

Introduced in R2011a