[a,b]=maprows(VLA,VLB)
VLA : | List A | |
VLB : | List B |
a : | used to transform index list based on A indices | |
b : | used to transform index list based on B indices |
Find the original order for an unsorted list
AL=ELofn(10); BL=ELunsort(AL); [ai,bi]=maprows(AL,BL); [AL BL ai bi]
[ BL(ai,:), AL(bi,:)]