access the row and col of a matrix
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
i have a matrix
A = [11 12 13
14 15 16
17 18 19];
now i take a value 6... how can i get the value there and and row and column....
eg: value = 16
row = 2
col = 3
0 commentaires
Réponse acceptée
Plus de réponses (2)
dbmn
le 21 Avr 2017
2 Possibilities
Easiest: row column
A(2,3)
Second possibility (by element count)
A(8)
0 commentaires
Voir également
Catégories
En savoir plus sur Particle & Nuclear Physics dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!