Information about digital filter




s = info(d) returns a string matrix with information about the digital filter, d.


expand all

Information on a Lowpass FIR Filter

Design a lowpass FIR filter with normalized passband frequency $0.4\pi$ rad/sample and normalized stopband frequency $0.45\pi$ rad/sample. Obtain information about the filter just designed.

d = designfilt('lowpassfir','PassbandFrequency',0.4,'StopbandFrequency',0.45);
s = info(d)
s =

FIR Digital Filter (real)       
Filter Length  : 81             
Stable         : Yes            
Linear Phase   : Yes (Type 1)   
Design Method Information       
Design Algorithm : Equiripple   
Design Specifications           
Sample Rate     : 2 (normalized)
Response        : Lowpass       
Passband Edge   : 0.4           
Stopband Edge   : 0.45          
Passband Ripple : 1 dB          
Stopband Atten. : 60 dB         

Input Arguments

expand all

d — Digital filterdigitalFilter object

Digital filter, specified as a digitalFilter object. Use designfilt to generate a digital filter based on frequency-response specifications.

Example: d = designfilt('lowpassiir','FilterOrder',3,'HalfPowerFrequency',0.5) specifies a third-order Butterworth filter with normalized 3-dB frequency 0.5π rad/sample.

Output Arguments

expand all

s — Information tablestring matrix

Information table, returned as a string matrix.

Was this topic helpful?