access the row and col of a matrix
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Elysi Cochin
am 21 Apr. 2017
Bearbeitet: Stephen23
am 21 Apr. 2017
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 Kommentare
Akzeptierte Antwort
Weitere Antworten (2)
dbmn
am 21 Apr. 2017
2 Possibilities
Easiest: row column
A(2,3)
Second possibility (by element count)
A(8)
0 Kommentare
Siehe auch
Kategorien
Mehr zu Transfer Function Models 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!