Mu Analysis and Synthesis Toolbox    
indvcmp

Compare the independent variable data of two VARYING matrices

Syntax

Description
indvcmp compares the data for two VARYING matrices. If the two sets of independent variables are within a specified tolerance of one another, then the VARYING matrices are assumed to have identical independent variables, and the VARYING matrices can be combined (i.e., added, subtracted, multiplied, etc.). The results are displayed if an output argument is not provided.

Input arguments

mat1, mat2=
matrices to be compared
errcrit=
1 x 2 optional matrix containing the relative error and absolute error bounds. The relative error is used to test the error in independent variables whose magnitude is greater than 1e-9, while the absolute error bound used for smaller independent variable values. Default values are 1e-6, and 1e-13, respectively.
:

Output arguments:

code=0
code=1
code=2
code=3
independent variable data is different
independent variable data is identical
different number of points
at least one matrix isn't a VARYING matrix

Examples
Compare the two frequency response matrices, mat has its independent variable at 0.01 and 0.1 and mat2 has its independent variable at 0.011 and 0.1. Given the default comparison criteria, the independent variable is different. Changing the tolerance leads to the command checking different indvcmp variations in the independent variable.

see(mat)

Changing the relative and absolute error bounds in indvcmp leads these two independent variables to be deemed the same.

Algorithm
indvcmp uses standard MATLAB commands.

See Also
getiv, sortiv, vunpck, xtract, xtracti



hinfsyne madd, msub