How to specifically select columns from a matrix?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Benson Gou
am 6 Okt. 2018
Bearbeitet: Stephen23
am 7 Okt. 2018
Dear All,
For a given 2 columns matrix A. For example
Can I extract the first 3 elements in the 2nd columns and the 4th and 5th elements in the first column by one commend?
I tried the following way but failed: First, I defined an array as follows,
Then I did A(:,r) and it did not work.
Thanks a lot. Bei Gou
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Resizing and Reshaping 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!