Effacer les filtres
Effacer les filtres

How to extract certain rows of a matrix?

2 vues (au cours des 30 derniers jours)
Mnr
Mnr le 26 Mar 2014
Commenté : Mnr le 26 Mar 2014
Hello all,
I have a matrix having large dimension (165475 X 2). Some of its rows have a coordinate of (0,0). I would like to extract those rows. In other words, I would like each row of my matrix be treated as a vector and I am interested in the index of those rows. Thanks.

Réponse acceptée

Mischa Kim
Mischa Kim le 26 Mar 2014
Mnr, you could use
rows = find(all(data==0,2))
  1 commentaire
Mnr
Mnr le 26 Mar 2014
Thank you so much Mischa!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Matrix Indexing dans Help Center et File Exchange

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

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

Start Hunting!

Translated by