필터 지우기
필터 지우기

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 CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by