find values of indexes
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello,
Could you please help me to find values of indexes.
Thank you
1 Kommentar
Antworten (1)
yonatan gerufi
am 8 Sep. 2014
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 Kommentare
Siehe auch
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!