Signal Processing Toolbox    
freqs

Frequency response of analog filters.

Syntax

Description

freqs returns the complex frequency response H(j) (Laplace transform) of an analog filter

given the numerator and denominator coefficients in vectors b and a.

h = freqs(b,a,w) returns the complex frequency response of the analog filter specified by coefficient vectors b and a. freqs evaluates the frequency response along the imaginary axis in the complex plane at the frequencies specified in real vector w.

[h,w] = freqs(b,a) automatically picks a set of 200 frequency points w on which to compute the frequency response h.

[h,w] = freqs(b,a,n) picks n frequencies on which to compute the frequency response h.

freqs with no output arguments plots the magnitude and phase response versus frequency in the current figure window.

freqs works only for real input systems and positive frequencies.

Examples

Find and graph the frequency response of the transfer function given by

You can also create the plot with

To convert to hertz, degrees, and decibels, use

Algorithm

freqs evaluates the polynomials at each frequency point, then divides the numerator response by the denominator response.

See Also
abs
Absolute value (magnitude).
angle
Phase angle.
freqz
Frequency response of digital filters.
invfreqs
Continuous-time (analog) filter identification from frequency data.
logspace
Generate logarithmically spaced vectors (see the MATLAB documentation).
polyval
Polynomial evaluation (see the MATLAB documentation).


 firrcos freqspace