Hi everybody,
I have a matrix with the double amount of values in (almost) random order and I would like to be able to find and delete the double values.
Example:
Val = [2;4;7;2;3] (5x1 double) and I would like to find and delete (or replace) 2 since it occurs twice.
Does anyone know how to do this?
Best regards,
Christian

 채택된 답변

Image Analyst
Image Analyst 2014년 12월 4일

0 개 추천

Val = unique(Val);

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

질문:

2014년 12월 4일

댓글:

2014년 12월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by