simple operations

Hi, I'm seeking the way to erase repeated value into vector, like this:
a = [0 0 1 2 2 2 7];
b = something(a);
b = [0 1 2 7]
thx

 채택된 답변

Dr. Seis
Dr. Seis 2011년 11월 10일

0 개 추천

a = [0 0 1 2 2 2 7];
b = unique(a);
b = [0 1 2 7]

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Parallel Computing에 대해 자세히 알아보기

질문:

2011년 11월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by