Difference between values and indices?
9 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Can someone give an explanation of the difference between the values of elements in a matrix vs. the indices of elements in a matrix?
Thanks.
0 Commenti
Risposta accettata
Mischa Kim
il 5 Ott 2017
Modificato: Mischa Kim
il 5 Ott 2017
E.g.
A = [1 2; 3 4]
Values of/in A are 1,2,3,4. To access the 2 you would use
val = A(1,2)
(1,2) are the indices of the element of A whose value is 2.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Operators and Elementary Operations in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!