필터 지우기
필터 지우기

Removing repeating data points

조회 수: 1 (최근 30일)
Matt
Matt 2012년 11월 26일
Ive got two matrices of different sizes; matrix A is smaller than Matrix B
Some of the numbers in Matrix A are in Matrix B i want to remove these, how can i do this?

답변 (1개)

Andrei Bobrov
Andrei Bobrov 2012년 11월 26일
A = randi(10,3)
B = randi(10,5)
A(ismember(A(:),B(:))) = nan

카테고리

Help CenterFile Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by