find values of indexes
2 次查看(过去 30 天)
显示 更早的评论
Hello,
Could you please help me to find values of indexes.
Thank you
回答(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!