Mu Analysis and Synthesis Toolbox    
massign

Matrix assignment for VARYING and SYSTEM matrices

Syntax

Description
Performs a matrix assignment like operation on VARYING and SYSTEM matrices. It is functionally equivalent to:

matin(rowindex,colindex) = data

where rowindex and colindex are vectors specifying the rows and columns (or outputs and inputs if matin is a SYSTEM) to be changed.

data must either be a constant or of the same type as matin. The dimensions of data must be consistent with the lengths of rowindex and colindex.

Note: when applied to a SYSTEM, the result will almost always be nonminimal.

Examples
In the first example a VARYING matrix with two independent variables is formed with identical (and obvious) data for each matrix.

Now make a 2 x 2 data matrix and insert it into the VARYING matrix. Changing the order of the row and column indices has the effect of permuting the result. This is identical to the constant matrix case.

In the following example part of a system is replaced by the massign function. The initial system is a diagonal system of first order lags. The 2,2 element is replaced by a lightly damped system and the result plotted. Note that the modified system is no longer minimal.

See Also
sel



madd, msub mfilter