find values of indexes
조회 수: 3 (최근 30일)
이전 댓글 표시
Hello,
Could you please help me to find values of indexes.
Thank you
댓글 수: 1
답변 (1개)
yonatan gerufi
2014년 9월 8일
hopfully this will answer your question,
The functions min & max give you back:
[value, position]
you can use it to find specific value with:
array2 = abs(array1 - searched value)
[value, positions] = min(array2)
this will work also for matrix.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!