Simulink Control Design™ - MathWorks

(Tuis.) #1

Specify Portion of Model to Linearize at Command Line


To specify the portion of your Simulink model to linearize, you can define linear analysis
points at the command line using the linio, setlinio, and getlinio functions.
Analysis points represent linearization inputs, outputs, and loop openings for your model.
Using this method, you can specify multiple sets of analysis points without changing your
model.

Alternatively, you can define analysis points:


  • In the Linear Analysis Tool. For more information, see “Specify Portion of Model to
    Linearize in Linear Analysis Tool” on page 2-31.

  • Directly in your Simulink model. Use this method to save your analysis points in the
    model. For more information, see “Specify Portion of Model to Linearize in Simulink
    Model” on page 2-23.


Specify Analysis Points


To specify analysis points at the command line, create linearization I/O objects using the
linio function. To create an analysis point at the output port of a block in your model,
use the following syntax:

io = linio(block,port,type);

where


  • block is the full block path of the block, specified as a character vector.

  • port is the output port number.

  • type is the analysis point type, specified as one of the following:

    • 'input' — Input perturbation

    • 'output' — Output measurement

    • 'loopbreak' — Loop break

    • 'openinput' — Open-loop input

    • 'openoutput' — Open-loop output

    • 'looptransfer' — Loop transfer

    • 'sensitivity' — Sensitivity




Specify Portion of Model to Linearize at Command Line
Free download pdf