Subtract every element of array from one another and find the sum
    조회 수: 5 (최근 30일)
  
       이전 댓글 표시
    
I want to subtract each element from one another and find the sum of each column for every element. Array is [47.07 49.39 56.87 69.04 72.80 72.68]
댓글 수: 1
답변 (1개)
  Walter Roberson
      
      
 2019년 11월 1일
        A.' - A
댓글 수: 4
  Walter Roberson
      
      
 2019년 11월 2일
				[~, maxidx] = max(YourMatrix(:,3)*YourMatrix(:,4));
ExtractedRow = YourMatrix(maxidx,:);
참고 항목
카테고리
				Help Center 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


