필터 지우기
필터 지우기

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

조회 수: 1 (최근 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 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