Mu Analysis and Synthesis Toolbox    
sel, reordsys

Select rows/outputs and columns/inputs from a CONSTANT, SYSTEM or VARYING matrix or reorder the SYSTEM states

Syntax

Description
sel selects desired rows and columns from a CONSTANT/VARYING matrix, or outputs and inputs from a SYSTEM matrix. For CONSTANT and VARYING matrices, the rows and cols input arguments are row vectors with the desired rows/columns of mat specified. For SYSTEM matrices, outputs and inputs are row vectors with the desired inputs/outputs specified. Use the string ':' to specify all rows (inputs) and/or columns (outputs).

reordsys reorders the states of SYSTEM matrix sys as defined by the vector of position variables, index. The index variable is restricted to be the same length as the number of states of sys. This command can be used in conjunction with strans and sresid to reduce the states of a SYSTEM matrix.

Examples
You can use the sel command with any matrix type. First, construct and display a one state, two output, three input SYSTEM matrix.

Reorder the outputs of sys to be output 2, 1 and repeat output 2; also reorder the inputs to be input 3, 1 and 2.

The same manipulations can be done on a VARYING matrix.

Select the second and first outputs and the third and second inputs and display them.

The command reordsys interchanges states in a SYSTEM matrix. The matrix (sys) has four states, two inputs, and one output and it is to be reordered so that states three and four interchange with states one and two in the state-space system.

See Also
getiv, sresid, strunc, unpck, vunpck



seesys siggen