Simulink Control Design™ - MathWorks

(Tuis.) #1

frest.simCompare


Package: frest


Plot time-domain simulation of nonlinear and linear models


Syntax


frest.simCompare(simout,sys,input)
frest.simCompare(simout,sys,input,x0)
[y,t] = frest.simCompare(simout,sys,input)
[y,t,x] = frest.simCompare(simout,sys,input,x0)


Description


frest.simCompare(simout,sys,input) plots both



  • Simulation output, simout, of the nonlinear Simulink model


You obtain the output from the frestimate command.


  • Simulation output of the linear model sys for the input signal input


The linear simulation results are offset by the initial output values in the simout data.

frest.simCompare(simout,sys,input,x0) plots the frequency response simulation
output and the simulation output of the linear model with initial state x0. Because you
specify the initial state, the linear simulation result is not offset by the initial output
values in the simout data.


[y,t] = frest.simCompare(simout,sys,input) returns the linear simulation
output response y and the time vector t for the linear model sys with the input signal
input. This syntax does not display a plot. The matrix y has as many rows as time
samples (length(t)) and as many columns as system outputs.


[y,t,x] = frest.simCompare(simout,sys,input,x0) also returns the state
trajectory x for the linear state space model sys with initial state x0.


frest.simCompare
Free download pdf