Sorting corresponding index if the position sorted in descend order?
1 次查看(过去 30 天)
显示 更早的评论
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/746409/image.jpeg)
2 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrices and Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!