This example shows how to perform frequency response estimation for a model using the Linear Analysis Tool. The input signal used for estimation is based on the linearization of the model.
Open Simulink® model.
sys = 'scdDCMotor'; open_system(sys)
In the Simulink Editor, select Analysis > Control Design > Linear Analysis.
Linearize the model using the model initial conditions as the operating point.
In the Linear Analysis tab, click Bode.
A new linearized model,
linsys1, appears in the
Linear Analysis Workspace.
In the Estimation tab, in the Input
Signal drop-down list, select
Initialize the input signal frequencies and parameters based on
In the Create sinestream input dialog box, click Initialize frequencies and parameters.
The Frequency content viewer is populated with frequency points. The software
chooses the frequencies and input signal parameters automatically based on the
In the Frequency content viewer, select all the frequency points.
Specify the amplitude of the input signal.
1 in the Amplitude box.
Create the input sinestream signal.
Click OK. The input signal
appears in the Linear Analysis Workspace.
Click Bode Plot 1 to estimate the frequency response.
The estimated system,
estsys1, appears in the Linear
Analysis Workspace and the its frequency response is added to Bode
The frequency response for the estimated model matches that of the linearized model.