How can I find the n smallest numbers in a two-dimensional array of m numbers?
이전 댓글 표시
For example, with this 2x5 matrix (m=10 and n=4), the expected answer is
(2,9), (1,5), (1,3), (2,10)
111 , 112, 145, 212
236 245 145 244 112
225 232 266 111 212
댓글 수: 2
Randy Souza
2013년 4월 15일
@ankita: I tried to edit this to make the question more clear, please edit it yourself if I have distorted the meaning...
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!