No BSD License
Highlights from
sort2li
|
|
| File Information |
| Description |
This function transforms the indices output from sort into a matrix of linear indices so that parallel sorting is simplified. If no dimension argument is supplied, sort2li will operate on the first non-singleton dimension just like sort will do without a dimension argument.
Usage: li=sort2li(sort_indices)
li=sort2li(sort_indices,dim)
Examples:
Sort a and then sort the elements of b exactly the same way.
b=1./a;
[c,i]=sort(a)
d=b(sort2li(i))
isequal(c,1./d) |
| MATLAB release |
MATLAB 7.5 (R2007b)
|
| Other requirements |
Not tested on pre-7. |
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 03 Apr 2008 |
Updated submat_noeval subfunction. |
| 03 Apr 2008 |
Update documentation -> reshape wasn't needed. |
|
Contact us at files@mathworks.com