Mu Analysis and Synthesis Toolbox    
getiv, sortiv, tackon

Return, sort, or append the independent variable values of a VARYING matrix

Syntax

Description
getiv returns the independent variable values of the VARYING matrix mat. If the input matrix mat is a VARYING matrix, the independent variable is returned as a column vector, indv, and the output err is set to 0. If mat is not a VARYING matrix, then indv is set to empty, and err is set to 1.

sortiv will reorder the independent variable and associated VARYING matrix to be monotonically increasing or decreasing. The optional sortflg is set to 0 (default) for monotonically increasing sorting or nonzero for monotonically decreasing sorting. sortiv can be used in conjunction with tackon to mesh together two different VARYING matrices. The optional third input argument, nored, is set to 0 (default) which does not reduce the number of independent variables even if there are repeated ones. Setting nored to a nonzero value causes repeated independent variables to be collapsed down if their corresponding matrices are the same. If they are not, an error message is displayed and only the first independent variable and corresponding matrix is kept. The output argument err, which is nominally 0, is set to 1 if an error message is displayed. The optional fourth input argument, epp, is a vector used for checking closeness of two variables. If two independent variables are within epp(1), and the norm of the difference between the two matrices at these points is within epp(2), sortiv collapses these two independent variable values down to one. If the two independent variables are within epp(1), and the norm condition is not satisfied, an error message is displayed and out is set to the null matrix. When nored is nonzero, the default value for epp is [1e - 9;1e - 9].

tackon strings together two VARYING matrices placing mat1 on top of mat2. mat1 and mat2 must have the same row and column dimensions.

Examples
The frequency response VARYING matrix from the frsp example is a two-input/two-output matrix containing 30 points. These independent variables vary from 0.1 rad/sec to 100 rad/sec.

Typing getiv without any arguments outputs a brief description of its calling sequence. All µ-Tools commands have this feature. The xtract command selects the independent variables between 1 and 5 rad/sec and the getiv command returns these independent variables from sysg and stores them in indv.

The sortiv command (with an optional second argument) resorts the independent variable of the frequency response of sys in decreasing order.

Algorithm
getiv and sortiv manipulate VARYING matrices.

See Also
indvcmp, sort, xtract, xtracti



genmu h2norm, hinfnorm