Effacer les filtres
Effacer les filtres

deleting multiple rows in a matrix

47 vues (au cours des 30 derniers jours)
shanmukh
shanmukh le 15 Fév 2013
Commenté : Brian Russell le 24 Avr 2021
how can i completely remove the first 113475 rows in a (879999*1) matrix
  1 commentaire
varun sahni
varun sahni le 2 Nov 2015
m=rand(879999,1) m(1:113475,:)=[]

Connectez-vous pour commenter.

Réponse acceptée

José-Luis
José-Luis le 15 Fév 2013
your_mat = your_mat(113476:end,:);
Please read the Getting started part of the documentation.
  1 commentaire
shanmukh
shanmukh le 15 Fév 2013
thank you, i takes time but i get the required output

Connectez-vous pour commenter.

Plus de réponses (1)

Azzi Abdelmalek
Azzi Abdelmalek le 15 Fév 2013
A(1:113475)=[]
  1 commentaire
Brian Russell
Brian Russell le 24 Avr 2021
This is not a correct answer. It should read: A(1:113475, :) = [ ]

Connectez-vous pour commenter.

Catégories

En savoir plus sur Logical 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