Effacer les filtres
Effacer les filtres

How to delete rows from matrix

1 vue (au cours des 30 derniers jours)
Triveni
Triveni le 16 Juin 2022
Commenté : Triveni le 16 Juin 2022
I have an variable SP_U (.mat file attached),
I have finded SP_d by specific condition,
SP_d=SP_U(SP_U(:,2)<SP_U(:,3),:);
I want to delete rows containing SP_d from SP_U. Please help me.

Réponse acceptée

MJFcoNaN
MJFcoNaN le 16 Juin 2022
Hello,
This may help:
SP_U(ismember(SP_U, SP_d,'rows'),:)=[];
  1 commentaire
Triveni
Triveni le 16 Juin 2022
Yes, exactly i was trying to find, ismember(SP_U, SP_d,'rows')
Thanks a lot.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by