sorting 2 array based on elements of other array
조회 수: 1 (최근 30일)
이전 댓글 표시
I have two arrays A and B
A=[0.1639,0.2123,0.1697];
B=[c1,c2,c3];
I want sort array B according to array A
my expected output like that
A=sort(A) which gives
A=[0.1639 0.1697 0.2123]
and as per A
B should be like this
B=[c1,c3,c2];
plz help me
댓글 수: 0
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Shifting and Sorting Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!