Hi, I want to delete 1:5 and 10:15 rows from a given 15*1 matrix. How can I do this ?

 Réponse acceptée

Ameer Hamza
Ameer Hamza le 25 Mar 2020
Modifié(e) : Ameer Hamza le 25 Mar 2020

0 votes

Something like this
x = (1:15)';
x([1:5 10:15], :) = [];

2 commentaires

Eranja Noopehewa
Eranja Noopehewa le 25 Mar 2020
Thank You.
Ameer Hamza
Ameer Hamza le 25 Mar 2020
Glad to be of help.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

Community Treasure Hunt

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

Start Hunting!

Translated by