SORTLIND (v2.1)
by Jos (10584)
03 Apr 2008
(Updated 03 Apr 2008)
sorts input and returns linear indices for parallel sorting
|
Watch this File
|
| File Information |
| Description |
[Y,I] = SORTLIND(X, ...) behaves (almost) exactly the same as the standard matlab function SORT, except that it returns linear indices so that Y equals X(I) independent of the dimensions and size of X.
(Note that [Y,I] = sort(X,...) returns sub-indices in I.)
Version 2.1, april 2008 |
| Acknowledgements |
The author wishes to acknowledge the following in the creation of this submission:
matchsort
|
| MATLAB release |
MATLAB 7 (R14)
|
| Other requirements |
Should work on most ML versions even before R14 |
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (5) |
| 03 Apr 2008 |
Garrett Euler
|
|
|
| 06 Apr 2008 |
aasim azooz
|
|
|
| 07 Apr 2008 |
Jos (the author)
|
|
|
| 08 Apr 2008 |
Jos (the author)
|
|
|
| 02 Jul 2010 |
Thomas
|
|
|
| Updates |
| 03 Apr 2008 |
fixed some spelling errors |
|
Contact us at files@mathworks.com