Copy particular column from an array
Afficher commentaires plus anciens
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]
Réponses (1)
Azzi Abdelmalek
le 17 Juil 2015
Modifié(e) : Azzi Abdelmalek
le 17 Juil 2015
Y(1:3,2)
Read the documentation http://www.mathworks.com/company/newsletters/articles/matrix-indexing-in-matlab.html
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!