Copy particular column from an array
12 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi I have an a matrix Y = [ 1 1 1 1 1; 2 3 4 5 6].
How do I copy just the first three values in column 2 into a new matrix
X = [2 3 4]
0 Kommentare
Antworten (1)
Azzi Abdelmalek
am 17 Jul. 2015
Bearbeitet: Azzi Abdelmalek
am 17 Jul. 2015
Y(1:3,2)
Read the documentation http://www.mathworks.com/company/newsletters/articles/matrix-indexing-in-matlab.html
0 Kommentare
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!