Delete rows from a matrix
1 次查看(过去 30 天)
显示 更早的评论
Hi, I want to delete 1:5 and 10:15 rows from a given 15*1 matrix. How can I do this ?
0 个评论
采纳的回答
Ameer Hamza
2020-3-25
编辑:Ameer Hamza
2020-3-25
Something like this
x = (1:15)';
x([1:5 10:15], :) = [];
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Multidimensional Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!