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!