Linear State-Variable Models
State-variable models, unlike transfer-function models, can have more than one input and more than one output. Simulink has the State-Space block that represents the linear state-variable model x = Ax +Bu, y = ex +Du. (See Section 8.7 for discussion of this model form.) The vector u represents the inputs, and the vector y represents the outputs. Thus, when you are connecting inputs to the State-Space
block, care must be taken to connect them in the proper order. Similar care must be taken when connecting the block’s outputs to another block. The following example illustrates how this is done.