필터 지우기
필터 지우기

Identifying missing values in matrices

조회 수: 3 (최근 30일)
Joel Schelander
Joel Schelander 2021년 4월 6일
답변: David Fletcher 2021년 4월 6일
I have two matrices. A=429x1 and B=412x1
Every number in the B matrix exists in A. However I want to find out which numbers are missing in B. Like
C=17x1

채택된 답변

David Fletcher
David Fletcher 2021년 4월 6일
try
idx=~ismember(B,A)
C=A(idx)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by