How to delete rows from matrix

2 views (last 30 days)
Triveni
Triveni on 16 Jun 2022
Commented: Triveni on 16 Jun 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.

Accepted Answer

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

Sign in to comment.

More Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

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

Start Hunting!