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);

1 件のコメント

Eric
Eric 2014 年 12 月 4 日
Thank you

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCreating 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