Copy particular column from an array
12 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Azzi Abdelmalek
2015-7-17
编辑:Azzi Abdelmalek
2015-7-17
Y(1:3,2)
Read the documentation http://www.mathworks.com/company/newsletters/articles/matrix-indexing-in-matlab.html
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrices and Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!