Finding the column of a matrix with the largest value
조회 수: 1 (최근 30일)
이전 댓글 표시
Hey all! I have a 65X64 cell called 'spikes" with a range of numbers in it. What might be the best way to go about selecting the column (say for the first row only) with the largest element in it. I'm more interested in which column has the largest element rather than the element value itself. I've also attached a .mat file of the cell in question. Thanks in advance!
댓글 수: 0
채택된 답변
추가 답변 (1개)
KSSV
2021년 7월 13일
Read about the function max. Here you can specify the dimension in which you want a maximum value. Also max gives you the value and index of the element.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Entering Commands에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!