AssemblePlant:
-------------------------------------------------------------------------------
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
gIn.gCommand
gIn.gControl
gIn.gPlant
gIn.gSensor
where each field is a statespace class.
e is a data structure
e.commandToControl
e.controlToPlant
e.plantToSensor
e.sensorToControl
where each field is a matrix that defines the connection between y of
the first and u of the second.
-------------------------------------------------------------------------------
Form:
g = AssemblePlant( gIn, e, out, in )
-------------------------------------------------------------------------------
------
Inputs
------
gIn (:)
.gCommand
.gControl
.gPlant
.gSensor
e (1,1)
.commandToControl
.controlToPlant
.plantToSensor
.sensorToControl
in (1,:) 'noise', 'disturbance', 'command'
-------
Outputs
-------
gC (1,1) The complete plant
-------------------------------------------------------------------------------
Children:
Common: Classes/@statespace/statespace.m
Common: Control/Series