The State-Space block implements a system whose behavior is defined as:
x'= Ax+Bu
y = Cx+Du
where x is the state vector, u is the input vector, y is the output vector and x0 is the initial condition of the state vector.
Further, the matrix coefficients must have these characteristics:
A must be an n-by-n matrix, where n is the number of states.
B must be an n-by-m matrix, where m is the number of inputs.
C must be an r-by-n matrix, where r is the number of outputs.
D must be an r-by-m matrix.
You can set the matrix coefficients by modifying the 'Block Parameters' (Double click on the block).
The block has only one input and one output port. The input to the block is 'u' and the output will be 'y'.
You can refer to the following example for more information: