필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

sorting matrix accroding to another matrix

조회 수: 1 (최근 30일)
Jothi
Jothi 2012년 11월 5일
마감: MATLAB Answer Bot 2021년 8월 20일
I have a Matrix
A= [ 1 2 3 2 3 1
2 1 4 3 2 1
2 3 3 4 4 1]
and the another matrix
B= [1 2 3 4]
i wamt sort the matrix A depends on the matrix B the output matrix is A
A=[1 1 2 2 3 3
1 1 2 2 3 4
1 2 3 3 4 4]
how should sort this way ie., the Matrix A will be sorted based on the matrix B.
thanks
  댓글 수: 1
José-Luis
José-Luis 2012년 11월 5일
How is this question different from the one you asked before? If
B = [1 3 4 2]
What output would you expect? Instead of asking the same question several times, it would be more efficient if you explained what you actually want.

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by