필터 지우기
필터 지우기

Whhat is the best way to remove repitions of two or three vectors?

조회 수: 2 (최근 30일)
suppose I have a=[9 10 6 3 7],b=[1 9 6 7 8], I want to remove the repartitions so that:a=[9 10 6 3 7],b=[1 0 0 0 8]

채택된 답변

Walter Roberson
Walter Roberson 2014년 4월 12일
b(ismember(b,a)) = 0;

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by