Copy particular column from an array
12 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Azzi Abdelmalek
el 17 de Jul. de 2015
Editada: Azzi Abdelmalek
el 17 de Jul. de 2015
Y(1:3,2)
Read the documentation http://www.mathworks.com/company/newsletters/articles/matrix-indexing-in-matlab.html
0 comentarios
Ver también
Categorías
Más información sobre Matrices and Arrays en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!