Delete rows from a matrix
1 view (last 30 days)
Show older comments
Eranja Noopehewa
on 25 Mar 2020
Commented: Ameer Hamza
on 25 Mar 2020
Hi, I want to delete 1:5 and 10:15 rows from a given 15*1 matrix. How can I do this ?
0 Comments
Accepted Answer
Ameer Hamza
on 25 Mar 2020
Edited: Ameer Hamza
on 25 Mar 2020
Something like this
x = (1:15)';
x([1:5 10:15], :) = [];
2 Comments
More Answers (0)
See Also
Categories
Find more on Multidimensional Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!