How i display matrix ?
148 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
ARJUN K P
am 16 Sep. 2015
Beantwortet: Pranav Bansal
am 4 Nov. 2019
my matrix is the form:
Ki = [25 35, 56 41,85 78]
i want print the like 35 or 41 or 78
0 Kommentare
Akzeptierte Antwort
Star Strider
am 16 Sep. 2015
Firsgt, you need to change the commas to semicolons, then display the second column:
Ki = [25 35; 56 41; 85 78]
Display = Ki(:,2)
2 Kommentare
Star Strider
am 16 Sep. 2015
Then you have to specify the row as well:
E12 = Ki(1,2) % Display ‘35’
E12 = Ki(2,2) % Display ‘41’
E12 = Ki(3,2) % Display ‘78’
Weitere Antworten (2)
Siehe auch
Kategorien
Mehr zu Matrices and Arrays 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!