This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Evaluate frequency response at given frequency


frsp = evalfr(sys,f)


frsp = evalfr(sys,f) evaluates the transfer function of the TF, SS, or ZPK model sys at the complex number f. For state-space models with data (ABCD), the result is

H(f) = D + C(fI – A)–1B

evalfr is a simplified version of freqresp meant for quick evaluation of the response at a single point. Use freqresp to compute the frequency response over a set of frequencies.


collapse all

Create the following discrete-time transfer function.


H = tf([1 -1],[1 1 1],-1);

Evaluate the transfer function at z = 1+j.

z = 1+j;
ans = 0.2308 + 0.1538i

Create the following continuous-time transfer function model:


sys = idtf(1,[1 2 1]);

Evaluate the transfer function at frequency 0.1 rad/second.

w = 0.1;
s = j*w;
ans = 0.9705 - 0.1961i

Alternatively, use the freqresp command.

ans = 0.9705 - 0.1961i


The response is not finite when f is a pole of sys.

See Also

| |

Introduced before R2006a