Documentation Center

  • Trials
  • Product Updates

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';
    open_system(sys);
  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 Frequency Response Estimation tab.

  2. In the Input Signal 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 to estimate the frequency response. The frequency response estimation result, estsys1, appears in the Linear Analysis Workspace.

Was this topic helpful?