MATPERM | Transpose and sign rows of x to match y (run after matcorr ) |
Usage: | >> [permx indperm] = matperm(x,y,indx,indy,corr); |
Inputs: | |
x |
first input matrix |
y |
matrix with same number of columns as x |
indx |
column containing row indices for x (from matcorr) |
indy |
column containing row indices for y (from matcorr) |
corr |
column of correlations between indexed rows of x,y (from matcorr) (used only for its signs, +/-) |
Outputs: | |
permx |
the matrix x permuted and signed according to (indx, indy,corr) to best match y. Rows of 0s added to x to match size of y if nec. |
indperm |
permutation index turning x into y; |
Authors: | Scott Makeig, Sigurd Enghoff & Tzyy-Ping Jung SCCN/INC/UCSD, La Jolla, 2000 |