Arranging a matrix rows with respect to another matrix
    조회 수: 4 (최근 30일)
  
       이전 댓글 표시
    
I have a matrix, for example, A=[1 2; 3 5], and I have a matrix B=[2 7; 1 3] What I need to do is arrange the rows of B like the rows of A, in terms of the sum of each row. Since the first row of A has sum 3, and the second row has sum 8, now I need to arrange the rows of B such that first row of has the smaller sum i.e 4 and the second row has the bigger sum 9. How can this be done, some help?
댓글 수: 2
참고 항목
카테고리
				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!


