simple operations

2 ビュー (過去 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 Center および File ExchangeDevelop 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