The modepairs(A, B, r) function returns the mode pairing based on MAC for two given input matrices A, B containing modal vectors column-wise. Argument r is a minimum threshold for pairing. Result is a vector containing the index of the matching vector for each reference vector. If no correspondence is found (all MAC < r), the result is set to NaN.The row size of A must be equal to the row size of B, while the column size of A may be greater then or equal to the column size of B.
Syntax
modepairs(A, B, r)
Types
Variable Name | Value Type | Variable Type | ||
---|---|---|---|---|
Arguments: | A | real, complex | matrix | |
B | real, complex | matrix | ||
r | real | scalar | ||
Result: | real | vector |
Calculator Input
Use the
button to complete the operation.Example
ID | Description | Type | Value | Expression | |
---|---|---|---|---|---|
A | Argument | REAL MATRIX |
| [[1,2,3],[3,5,2]] | |
B | Argument | REAL MATRIX |
| [[1,2,4],[4,5,6]] | |
r | Argument | REAL | 0.99 | 0.99 | |
M | REAL MATRIX |
| mac(A, B) | ||
v | Result | REAL VECTOR |
| modepairs(A, B, r) |