How to delete rows from matrix

1 回表示 (過去 30 日間)
Triveni
Triveni 2022 年 6 月 16 日
コメント済み: Triveni 2022 年 6 月 16 日
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 Center および File ExchangeLogical についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by