Mu Analysis and Synthesis Toolbox    
pck, pss2sys, sys2pss, unpck

Convert to and from CONSTANT and SYSTEM matrices


pss2sys translates a regular MATLAB matrix that is in packed form into a SYSTEM matrix. mat contains [A B; C D] which describes the individual components of a SYSTEM matrix with n being the number of states (size of A). sys2pss returns the CONSTANT matrix, mat = [A B; C D], from the input SYSTEM matrix sys.

pck takes consistent state-space data and forms a SYSTEM matrix with the data structure defined. Consistent state-space data requires a square A matrix, a B matrix with the same number of rows as A, a C matrix with the same number of columns as A, and a D matrix with same number of columns of B and rows of C. If the fourth input argument is omitted, then the D matrix is assumed to be identically zero, of appropriate dimensions. unpck is the inverse operation of pck, taking a SYSTEM matrix sys and converting it to A, B, C and D CONSTANT matrices.

Note that based on the data structure definition, a -Inf in the bottom right corner of a matrix denotes a SYSTEM matrix, with the top, right corner element of the matrix containing the number of states.

Create a SYSTEM matrix from MATLAB CONSTANT matrices via pss2sys. Define matrices A, B, C, and D as follows:

The same SYSTEM matrix can be constructed using the pck command.

Matrices A, B, C, and D can be constructed from sys using unpck.

See Also
minfo, nd2sys, vpck, vunpck, zp2sys

negangle pkvnorm, vnorm