Main Content

info

Information about digital filter

Description

example

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

Examples

collapse all

Design a sixth-order lowpass FIR filter with normalized passband frequency 0.4π rad/sample and normalized stopband frequency 0.45π rad/sample. Obtain information about the filter just designed.

d = designfilt("lowpassfir",FilterOrder=6, ...
    PassbandFrequency=0.4,StopbandFrequency=0.45);
s = info(d)
s = 25x30 char array
    'FIR Digital Filter (real)     '
    '-------------------------     '
    'Filter Length  : 7            '
    'Stable         : Yes          '
    'Linear Phase   : Yes (Type 1) '
    '                              '
    'Design Method Information     '
    'Design Algorithm : Equiripple '
    '                              '
    'Design Options                '
    'Density Factor  : 16          '
    'Maximum Phase   : false       '
    'Minimum Phase   : false       '
    'Stopband Decay  : 0           '
    'Stopband Shape  : flat        '
    'Uniform Grid    : true        '
    'Passband Weight : 1           '
    'Stopband Weight : 1           '
    '                              '
    'Design Specifications         '
    'Sample Rate   : 2 (normalized)'
    'Response      : Lowpass       '
    'Passband Edge : 0.4           '
    'Stopband Edge : 0.45          '
    'Filter Order  : 6             '

Input Arguments

collapse all

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

collapse all

Information table, returned as a character array.

Version History

Introduced in R2014a