How to returns combined data from a single vector with no repetitions?

조회 수: 1 (최근 30일)
Mr M.
Mr M. 2015년 3월 30일
답변: Mischa Kim 2015년 3월 30일
The only way is union(A,A)? There is no function with single argument?

채택된 답변

Mischa Kim
Mischa Kim 2015년 3월 30일
Not quite sure what you are trying to do. Do you mean:
A = [1 2 2 3 3 3];
B = unique(A)
B =
1 2 3

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 App Building에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by