How to index a sorted array with the actual array?

3 件のコメント

per isakson
per isakson 2014 年 12 月 18 日
I don't understand.
Sathiyamurthi P
Sathiyamurthi P 2014 年 12 月 18 日
I have an array, I want to sort that array and find index (location of the each element) of the sorted array elements in the actual array
Stephen23
Stephen23 2014 年 12 月 18 日
doc sort

サインインしてコメントする。

 採用された回答

Andrei Bobrov
Andrei Bobrov 2014 年 12 月 18 日

0 投票

a = rand(20,1);
[new,idx] = sort(a);

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeShifting and Sorting Matrices についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by