Minimum Value Search
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi
I have a matrix size 200*200, which all store a set of numbers
I want to find the minimum value on each row of my matrix.
I want to end up with new 200*1 array which stores the column number where the minimum value for that row has been found.
I hope somebody can help!
댓글 수: 0
답변 (1개)
Jan
2011년 7월 18일
x = rand(200, 200);
[value, index] = min(x, [], 2)
"help min" contains a corresponding example. Reading the help and doc text is always a good idea.
댓글 수: 0
참고 항목
카테고리
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!