Specific column range from an array?
142 次查看(过去 30 天)
显示 更早的评论
This is probably very dumb question but I cant seem to find an answer for it. I have an array with two columns, how to I extract let`s say the second column, from the 5th row until the 10th?
0 个评论
采纳的回答
Alexandra Harkai
2017-4-5
y = x(5:10, 2) % rows 5:10, column 2
1 个评论
Nom
2019-10-7
Thank you so much for actually linking it in the documentation, found exactly what I needed!
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!