simple operations

조회 수: 3 (최근 30일)
Steven
Steven 2011년 11월 10일
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일
a = [0 0 1 2 2 2 7];
b = unique(a);
b = [0 1 2 7]

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by