AssemblePlant:

Path: Common/ControlGUI

% Assemble a plant given a model described by gIn. 
 If open loop the output is the output of the sensor. 
 Otherwise it is the states of the plant.

 gIn is a data structure with models for command, control, the plant
 and the sensors.

   gIn.gCommand
   gIn.gControl
   gIn.gPlant
   gIn.gSensor

 where each field is a statespace class.

 e is a data structure with indices giving connections between the
 blocks:

   e.commandToControl 
     (output of the command block to the input of the control block)
   e.controlToPlant  
     (output of the control block to the input of the plant block)
   e.plantToSensor 
     (output of the plant block to the input of the sensor block)
   e.sensorToControl 
     (output of the sensor block to the input of the control block)

 where each field is a matrix that defines the connection between the
 input of the first and the output of the second. For example
 [1 1] means first output into first input.

 See series (not Series)  for more information about connections. 
--------------------------------------------------------------------------
   Form:
   g = AssemblePlant( gIn, e, in, openLoop )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   gIn       (:)   
                 .gCommand
                 .gControl
                 .gPlant
                 .gSensor
   e         (.) Datastructure
                 .commandToControl
                 .controlToPlant
                 .plantToSensor
                 .sensorToControl
   in        (1,:) 'noise', 'disturbance', 'command' 
   openLoop  (1,1) If 1 generate the open loop plant

   -------
   Outputs
   -------
   gC        (1,1)  The complete statespace plant
                             

--------------------------------------------------------------------------

Children:

Common: Classes/@statespace/and.m
Common: Classes/@statespace/close.m
Common: Classes/@statespace/connect.m
Common: Classes/@statespace/eig.m
Common: Classes/@statespace/get.m
Common: Classes/@statespace/getabcd.m
Common: Classes/@statespace/getsub.m
Common: Classes/@statespace/isempty.m
Common: Classes/@statespace/mtimes.m
Common: Classes/@statespace/plus.m
Common: Classes/@statespace/series.m
Common: Classes/@statespace/set.m
Common: Classes/@statespace/statespace.m
Common: Control/Append
Common: Control/Parallel
Common: Control/Series
Common: Control/SizeABCD
Common: General/CellToMat

Back to the Common Module page