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

3 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Shifting and Sorting Matrices 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by