Mu Analysis and Synthesis Toolbox | ![]() ![]() |
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.
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.
2 rows 3 columns indep variable 0.01 1 2 3 4 5 6 indep variable 0.1 7 8 9 10 11 12 see(mat2) 2 rows 3 columns indep variable 0.011 10 20 30 40 50 60 indep variable 0.1 70 80 90 100 110 120indvcmp
(mat
,mat2) varying data is DIFFERENT code =indvcmp
(mat
,mat2) code = 0
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 | ![]() |