Delete rows from a matrix

2 次查看(过去 30 天)
Hi, I want to delete 1:5 and 10:15 rows from a given 15*1 matrix. How can I do this ?

采纳的回答

Ameer Hamza
Ameer Hamza 2020-3-25
编辑:Ameer Hamza 2020-3-25
Something like this
x = (1:15)';
x([1:5 10:15], :) = [];

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Multidimensional Arrays 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by