getlinplant
Compute open-loop plant model from Simulink diagram
Syntax
[sysp,sysc] = getlinplant(block,op)
[sysp,sysc] = getlinplant(block,op,options)
Description
[sysp,sysc] = getlinplant(block,op) Computes the open-loop plant seen by a
Simulink block labeled block (where block specifies the full path to the block). The
plant model, sysp, and linearized block, sysc, are linearized at the operating point op.
[sysp,sysc] = getlinplant(block,op,options) Computes the open-loop plant
seen by a Simulink block labeled block, using the linearization options specified in
options.
Examples
To compute the open-loop model seen by the Controller block in the Simulink model
magball, first create an operating point object using the function findop. In this case,
you find the operating point from simulation of the model.
magball
op=findop('magball',20);
Next, compute the open-loop model seen by the block magball/Controller, with the
getlinplant function.
[sysp,sysc]=getlinplant('magball/Controller',op)
The output variable sysp gives the open-loop plant model as follows:
a =
Current dhdt height
getlinplant