min value of each row with corresponding column
조회 수: 1 (최근 30일)
이전 댓글 표시
How to do the following?
If there are three columns and I want to get the min value of each row and I want to know from which column was this value
댓글 수: 0
채택된 답변
Dyuman Joshi
2023년 11월 1일
y = magic(3)
%Utilize the functionality of min()
[m,idx] = min(y, [], 2)
댓글 수: 0
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!