matperm#
- matperm(first, second, first_indices, second_indices, correlations)#
Reorder and sign-correct rows of
firstintosecondrow order.first_indicesandsecond_indicesare 1-based row numbers, and the returned permutation uses the same convention. A partial match returns one row per pair. EEGLAB pads the shorter matrix with zero rows and requires one index for every row ofsecond.