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.

Example

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.

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 = 
                 magball/Magn  magball/Magn  magball/Magn
   magball/Magn          -100             0             0
   magball/Magn        -2.798             0         195.7
   magball/Magn             0             1             0
 
b = 
                 magball/Cont
   magball/Magn            50
   magball/Magn             0
   magball/Magn             0
 
c = 
                 magball/Magn  magball/Magn  magball/Magn
   Controller (             0             0            -1
 
d = 
                 magball/Cont
   Controller (             0
 
Continuous-time model.

See Also

findop, linoptions, operpoint, operspec

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS