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
Common0: Classes/@statespace/and.m
Common0: Classes/@statespace/close.m
Common0: Classes/@statespace/connect.m
Common0: Classes/@statespace/eig.m
Common0: Classes/@statespace/get.m
Common0: Classes/@statespace/getabcd.m
Common0: Classes/@statespace/getsub.m
Common0: Classes/@statespace/isempty.m
Common0: Classes/@statespace/mtimes.m
Common0: Classes/@statespace/plus.m
Common0: Classes/@statespace/series.m
Common0: Classes/@statespace/set.m
Common0: Classes/@statespace/statespace.m
Common1: Classes/@statespace/and.m
Common1: Classes/@statespace/close.m
Common1: Classes/@statespace/connect.m
Common1: Classes/@statespace/eig.m
Common1: Classes/@statespace/get.m
Common1: Classes/@statespace/getabcd.m
Common1: Classes/@statespace/getsub.m
Common1: Classes/@statespace/isempty.m
Common1: Classes/@statespace/mtimes.m
Common1: Classes/@statespace/plus.m
Common1: Classes/@statespace/series.m
Common1: Classes/@statespace/set.m
Common1: Classes/@statespace/statespace.m
Common2: Classes/@statespace/and.m
Common2: Classes/@statespace/close.m
Common2: Classes/@statespace/connect.m
Common2: Classes/@statespace/eig.m
Common2: Classes/@statespace/get.m
Common2: Classes/@statespace/getabcd.m
Common2: Classes/@statespace/getsub.m
Common2: Classes/@statespace/isempty.m
Common2: Classes/@statespace/mtimes.m
Common2: Classes/@statespace/plus.m
Common2: Classes/@statespace/series.m
Common2: Classes/@statespace/set.m
Common2: Classes/@statespace/statespace.m

Back to the Common Module page