Signal Toolkit - freqs


Function File: h = freqs (b, a, w)
Function File: [h, wout] = freqs (b, a, n)
Function File: freqs (…)

Compute the s-plane frequency response of the analog filter B(s)/A(s).

The frequency response is evaluated at the angular frequencies specified by vector w (in rad/s). If the third argument is a scalar integer n, or if it is omitted, the frequency response is computed at n logarithmically spaced frequencies (default n = 200).

If no output argument is requested, the magnitude and phase are plotted.

Example:

 b = [1 2]; a = [1 1];
 w = linspace (0, 4, 128);
 freqs (b, a, w);