Verify if filter System object is FIR
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.
Design a Lowpass FIR Filter.
d = fdesign.lowpass; h = design(d,'Systemobject',true)
h = dsp.FIRFilter with properties: Structure: 'Direct form' NumeratorSource: 'Property' Numerator: [-0.0024 -0.0021 0.0068 0.0167 0.0111 -0.0062 ... ] InitialConditions: 0 Show all properties
Determine if the filter is an FIR filter using the
ans = logical 1
isfir returns 1 to indicate that the filter is an FIR filter.
sysobj— Input filter
Input filter, specified as one of the following filter System objects:
flag— Flag to determine whether filter is FIR
Flag to determine whether the filter is FIR, returned as a logical scalar. If the
filter is FIR,
isfir returns a logical
it returns a logical