Finding the max of certain columns
조회 수: 1 (최근 30일)
이전 댓글 표시
I have a 4x7 matrix and i am trying to find the max of the 2nd 3rd and 4th column to create a 1x3 matrix how would i do that?
댓글 수: 0
답변 (1개)
Ameer Hamza
2020년 9월 20일
편집: Ameer Hamza
2020년 9월 20일
M % 4x7 matrix
x = max(M(:,[2 3 4])); % 1x3 vector of max values
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!