What is the meaning of [B,J]=sort(A,'descend')?

3 ビュー (過去 30 日間)
zhenyu zeng
zhenyu zeng 2019 年 4 月 2 日
編集済み: Stephen23 2019 年 4 月 2 日
What is the meaning of [B,J]=sort(A,'descend')
Why can he use [B,J] here?
  1 件のコメント
Stephen23
Stephen23 2019 年 4 月 2 日
編集済み: Stephen23 2019 年 4 月 2 日
"What is the meaning of [B,J]=sort(A,'descend')"
B = the sorted data.
J = the sort indices along the dimension sorted along.
'descend' = tells sort to sort the values into descending order.
"Why can he use [B,J] here?"
Because its author read the documentation:

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

回答 (0 件)

カテゴリ

Help Center および 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