Evaluate system response at specific frequency (2024)

Evaluate system response at specific frequency

collapse all in page

Syntax

frsp = evalfr(sys,x)

Description

evalfr is a simplified version of freqresp meant for quick evaluation of the system response at any point in the complex plane. To evaluate system response over a set of frequencies, use freqresp. To obtain the magnitude and phase data as well as plots of the frequency response, use bode.

example

frsp = evalfr(sys,x) evaluates the dynamic system model sys at the point x in the complex s plane (for continuous-time sys) or z plane (for discrete-time sys).

Examples

collapse all

Evaluate Discrete-Time Transfer Function

Open Live Script

Create the following discrete-time transfer function.

H(z)=z-1z2+z+1

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

Evaluate the transfer function at z = 1+j.

z = 1+j;evalfr(H,z)

Evaluate Frequency Response of Identified Model at Given Frequency

This example uses:

  • System Identification ToolboxSystem Identification Toolbox

Open Live Script

Create the following continuous-time transfer function model:

H(s)=1s2+2s+1

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

Evaluate the transfer function at frequency 0.1 rad/second.

w = 0.1;s = j*w;evalfr(sys,s)
ans = 0.9705 - 0.1961i

Alternatively, use the freqresp command.

freqresp(sys,w)
ans = 0.9705 - 0.1961i

Frequency Response of MIMO State-Space Model

Open Live Script

For this example, consider a cube rotating about its corner with inertia tensor J and a damping force F of 0.2 magnitude. The input to the system is the driving torque while the angular velocities are the outputs. The state-space matrices for the cube are:

A=-J-1F,B=J-1,C=I,D=0,where,J=[8-3-3-38-3-3-38]andF=[0.20000.20000.2]

Specify the A, B, C and D matrices, and create the continuous-time state-space model.

J = [8 -3 -3; -3 8 -3; -3 -3 8];F = 0.2*eye(3);A = -J\F;B = inv(J);C = eye(3);D = 0;sys = ss(A,B,C,D);size(sys)
State-space model with 3 outputs, 3 inputs, and 3 states.

Compute the frequency response of the system at 0.2 rad/second. Since sys is a continuous-time model, express the frequency in terms of the Laplace variable s.

w = 0.2;s = j*w;frsp = evalfr(sys,s)
frsp = 3×3 complex 0.3607 - 0.9672i 0.3197 - 0.5164i 0.3197 - 0.5164i 0.3197 - 0.5164i 0.3607 - 0.9672i 0.3197 - 0.5164i 0.3197 - 0.5164i 0.3197 - 0.5164i 0.3607 - 0.9672i

Alternatively, you can use the freqresp command to evaluate the frequency response using the scalar value of the frequency directly.

H = freqresp(sys,w)
H = 3×3 complex 0.3607 - 0.9672i 0.3197 - 0.5164i 0.3197 - 0.5164i 0.3197 - 0.5164i 0.3607 - 0.9672i 0.3197 - 0.5164i 0.3197 - 0.5164i 0.3197 - 0.5164i 0.3607 - 0.9672i

Input Arguments

collapse all

sysDynamic system
dynamic system model | model array

Dynamic system, specified as a SISO or MIMO dynamic system model or array of dynamic system models. Dynamic systems that you can use include:

  • LTI models such as ss, tf, and zpk models.

  • Sparse state-space models, such as sparss or mechss models.

  • Generalized or uncertain state-space models such as genss or uss (Robust Control Toolbox) models. (Using uncertain models requires Robust Control Toolbox™ software.)

    • For tunable control design blocks, the function evaluates the model at its current value to evaluate the frequency response.

    • For uncertain control design blocks, the function evaluates the frequency response at the nominal value and random samples of the model.

  • Identified state-space models, such as idss (System Identification Toolbox) models. (Using identified models requires System Identification Toolbox™ software.)

For a complete list of models, see Dynamic System Models.

xPoint in complex plane
complex scalar

Point in complex plane at which to evaluate system response, specified as a complex scalar. For continuous-time sys, the point x is in the plane of the continuous-time Laplace variable s. For discrete-time sys, x is in the plane of the discrete-time Laplace variable z.

To evaluate the response of the system at a particular frequency, specify the frequency in terms of the appropriate Laplace variable. For instance, if you want to evaluate the frequency response of a system sys at a frequency value of w rad/s, then use:

  • x = j*w, for continuous-time sys.

  • z = exp(j*w*Ts), for discrete-time sys, where Ts is the sample time.

Output Arguments

collapse all

frsp — Frequency response
complex scalar | complex array

Frequency response of the system at the point x, returned as a complex scalar (for SISO sys) or a complex array (for MIMO sys). For MIMO systems, the array dimensions correspond to the I/O dimensions of sys.

Version History

Introduced before R2006a

See Also

bode | freqresp | sigma

MATLAB Command

You clicked a link that corresponds to this MATLAB command:

 

Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.

Evaluate system response at specific frequency (1)

Select a Web Site

Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

You can also select a web site from the following list:

Americas

  • América Latina (Español)
  • Canada (English)
  • United States (English)

Europe

  • Belgium (English)
  • Denmark (English)
  • Deutschland (Deutsch)
  • España (Español)
  • Finland (English)
  • France (Français)
  • Ireland (English)
  • Italia (Italiano)
  • Luxembourg (English)
  • Netherlands (English)
  • Norway (English)
  • Österreich (Deutsch)
  • Portugal (English)
  • Sweden (English)
  • Switzerland
    • Deutsch
    • English
    • Français
  • United Kingdom (English)

Asia Pacific

  • Australia (English)
  • India (English)
  • New Zealand (English)
  • 中国
  • 日本 (日本語)
  • 한국 (한국어)

Contact your local office

Evaluate system response at specific frequency (2024)

FAQs

How do you evaluate frequency response? ›

The frequency response H(jω) is a function that relates the output response to a sinusoidal input at frequency ω. They are therefore, not surprisingly, related. In fact the frequency response of a system is simply its transfer function as evaluated by substituting s = jω.

How can the frequency response of a system be determined? ›

The frequency response of a system can be found by applying a sinusoidal input signal to the input of the system and measuring the output so that the gain and the phase can be determined. Such measurements can be carried out for a number of frequencies.

What is the formula for the frequency response system? ›

The frequency response defines the response of the system to a single frequency. That is, if x[n]=ejω0n, then y[n]=H(ω0)x[n]=H(ω0)ejω0n. If we take the DTFT of both sides, we get Y(ω)=H(ω0)δ(ω−ω0).

What is system frequency response? ›

A frequency response describes the steady-state response of a system to sinusoidal inputs of varying frequencies and lets control engineers analyze and design control systems in the frequency domain. To understand why the frequency domain is important consider an acoustic guitar.

How do you evaluate response rate? ›

It's usually expressed in percentage and can be obtained by dividing the number of participants/respondents by the total number of surveys sent. For example, if you sent the survey to 100 participants and 40 of them attended the survey, the response rate would be 40%.

What is the frequency response analysis method? ›

A frequency response analysis is performed to determine the steady state vibration for a range of frequencies, one at a time. It can be used for structures which operate continuously at a single speed or those which change speed slowly enough so that steady state is maintained.

How do you calculate system frequency? ›

Equations for Finding Frequency

When you have a wavelength (λ) and a velocity (V), find frequency by using the equation f = V / λ, or f = C / λ for electromagnetic waves. If you're calculating frequency given a time (T), use f = 1/T.

What determines frequency response? ›

Measuring the frequency response typically involves exciting the system with an input signal and measuring the resulting output signal, calculating the frequency spectra of the two signals (for example, using the fast Fourier transform for discrete signals), and comparing the spectra to isolate the effect of the system ...

What is the test of frequency response? ›

An FR measurement compares the output levels of an audio device to known input levels. A basic FR measurement consists of two or three test tones: mid, high, and low. In this example you perform an audible range FR measurement by sweeping a sine wave from the lowest frequency in the range to the highest.

What is a good frequency response? ›

Ideal speaker frequency response would cover the full spectrum of human hearing, i.e., 20 Hz to 20,000 Hz, with a smooth response across this range. However, perfect sound reproduction is difficult due to several factors like speaker design, room acoustics, and human hearing limitations.

What does frequency response measure? ›

A frequency response is a visual representation of how well an audio component reproduces the audible range of sound. It's usually presented as a line graph, with the device's output amplitude on the y-axis (in decibels) plotted against frequency on the x-axis (in Hertz).

How is frequency following response measured? ›

Frequency-following responses (FFRs) are recordings of phase-locked neural activity that is synchronized to periodic and transient aspects of sound. Traditionally, FFRs have been measured in humans as electrophysiological potentials to sound, recorded from the scalp.

Why is the frequency response of a system important? ›

Frequency response methods allow us to make a reasonable estimate of the limits of electronic tuning that will produce a stable, oscillation-free servomechanism. Bode's methods require that we test and study an open-loop system, then use analytical techniques to ask "what if" the loop is closed.

What does system frequency mean? ›

system frequency means the fundamental frequency of the alternating current and voltage in the Network measured in cycles per second (hertz).

Why is it called a frequency response? ›

The way that the system output is related to the input for different frequencies is called frequency response. Frequency response means a graph where can be seen how something changes in different sound frequency.

What does a good frequency response look like? ›

The frequency response curve (so-called because a speaker's or headphone's frequency response will curve, or roll off, in the low bass and high treble) is pretty flat (“flat” is good, because it means the device is accurate), with no serious peaks, dips or other up-and-down variations.

Top Articles
Latest Posts
Article information

Author: Mr. See Jast

Last Updated:

Views: 5669

Rating: 4.4 / 5 (55 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Mr. See Jast

Birthday: 1999-07-30

Address: 8409 Megan Mountain, New Mathew, MT 44997-8193

Phone: +5023589614038

Job: Chief Executive

Hobby: Leather crafting, Flag Football, Candle making, Flying, Poi, Gunsmithing, Swimming

Introduction: My name is Mr. See Jast, I am a open, jolly, gorgeous, courageous, inexpensive, friendly, homely person who loves writing and wants to share my knowledge and understanding with you.