Mode Pairs

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 NameValue TypeVariable Type
Arguments:Areal, complexmatrix
Breal, complexmatrix
rrealscalar
Result:  real vector
Calculator Input

Use the modepairs button to complete the operation.

Example
IDDescriptionTypeValueExpression
AArgumentREAL MATRIX

[[1,2,3],[3,5,2]]
BArgumentREAL MATRIX

[[1,2,4],[4,5,6]]
rArgumentREAL0.990.99
M   REAL MATRIX

mac(A, B)
v Result REAL VECTOR

modepairs(A, B, r)