How to delete rows from an array?

1 vue (au cours des 30 derniers jours)
Guido Pastore
Guido Pastore le 1 Mar 2019
Commenté : Guido Pastore le 1 Mar 2019
Given an array of double of size 929x1, I want to obtain a reduced double array with the first 549 lines of the previous one. In short, given a double-sized array of 929x1, we want to eliminate the last 380 lines. How can I do??

Réponse acceptée

Arvind Sathyanarayanan
Arvind Sathyanarayanan le 1 Mar 2019
Modifié(e) : Arvind Sathyanarayanan le 1 Mar 2019
Set the rows you want to delete to null. Example:
x(550:end,:)=[];
  1 commentaire
Guido Pastore
Guido Pastore le 1 Mar 2019
Thank you so much!

Connectez-vous pour commenter.

Plus de réponses (1)

Walter Roberson
Walter Roberson le 1 Mar 2019
a = a(1:549,:);

Catégories

En savoir plus sur Data Types dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by