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.

Estimate Frequency Response Using Linear Analysis Tool

This example shows how to estimate the frequency response of a Simulink® model using the Linear Analysis Tool.

Open Simulink model and Linear Analysis Tool.

  1. Open Simulink model.

    sys = 'scdDCMotor';
  2. In the Simulink Editor, select Analysis > Control Design > Linear Analysis. This action opens the Linear Analysis Tool for the model.

Create an input signal for estimation.

  1. In the Linear Analysis Tool, click the Estimation tab.

  2. In the Input Signal drop-down list, select Sinestream to open the Create sinestream input dialog box.

  3. Click to open the Add frequencies dialog box. You can use this dialog box to add frequency points to the input signal.

  4. Specify the frequency range for the input.

    Enter .1 in the From box and 100 in the To box. Enter 100 in the box for the number of frequency points.

    Click OK. This action adds logarithmically spaced frequency points between 0.1 rad/s and 100 rad/s to the input signal. The added points are visible in the Frequency content viewer of the Create sinestream input dialog box.

  5. In the Frequency content viewer of the Create sinestream input dialog box, select all the frequency points.

  6. Specify the amplitude of the input signal.

    Enter 1 in the Amplitude box.

  7. Click OK to create the sinestream input signal.

    The new input signal, in_sine1, appears in the Linear Analysis Workspace.

Estimate frequency response.

Click Bode to estimate the frequency response. The frequency response estimation result, estsys1, appears in the Linear Analysis Workspace.