How to delete rows from matrix

2 次查看(过去 30 天)
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.

采纳的回答

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

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by