Determine if digital filter has finite impulse response
flag = isfir(d)
designfilt to design FIR and IIR versions of a highpass filter. Specify a normalized stopband frequency of 0.3 and a normalized passband frequency of 0.6. Verify that each filter is of the correct class. Display the frequency responses of the filters.
fir = designfilt('highpassfir','StopbandFrequency',0.3,'PassbandFrequency',0.6); iir = designfilt('highpassiir','StopbandFrequency',0.3,'PassbandFrequency',0.6); isfirFIR = isfir(fir)
isfirFIR = logical 1
isiirFIR = isfir(iir)
isiirFIR = logical 0
fvt = fvtool(fir,iir); legend(fvt,'FIR','IIR')
flag— Filter class identification
Filter class identification, returned as a logical scalar.