I would like to get corresponding names for a vector in Matrix1 from another matrix M2.
For example, one matrix=M1 has only names, A, B, C , D ,,,,etc 100 * 1 And other matrix=M2 also has those names, but resorted randomly in such names, and has one more column, M2 size is 100 *2.
For now, i would like to get corresponding information of second column to be matched with names of M1. my matrix is too large, without using forloop, is there any way to get it quickly?
many thanks,