필터 지우기
필터 지우기

Matrix with double values

조회 수: 2 (최근 30일)
Eric
Eric 2014년 12월 4일
댓글: Eric 2014년 12월 4일
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일
Val = unique(Val);
  댓글 수: 1
Eric
Eric 2014년 12월 4일
Thank you

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by