Sorting corresponding index if the position sorted in descend order?

1 回表示 (過去 30 日間)
Rubel Ahmed
Rubel Ahmed 2021 年 9 月 22 日
編集済み: Rubel Ahmed 2021 年 9 月 23 日
Hi all,
I have one dimensional particle aarray say P and the corresponding index I. Later, I have sorted the position data in descending order using descend comand like P_N. Now I want to done the change of the corresponding index effeciently(Since my original array is too large,thats whyI am not interested to use loop) as I_N. Thanks.
  2 件のコメント
Stephen23
Stephen23 2021 年 9 月 22 日
@Rubel Ahmed: take a look at SORT's second output argument:
Rubel Ahmed
Rubel Ahmed 2021 年 9 月 22 日
@Stephen thanks mate.Its done!

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

タグ

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by