フィルターのクリア

Remove redundancy values from matrix

3 ビュー (過去 30 日間)
Anusha
Anusha 2013 年 10 月 24 日
回答済み: Wayne King 2013 年 10 月 24 日
Any possible to remove the duplicate entries
S=[2 3 4 5 4 4 4;2 3 4 2 3 4 5;3 4 4 5 5 2 3];
I want the output will be
A=[2 3 4 5]

採用された回答

Wayne King
Wayne King 2013 年 10 月 24 日
S=[2 3 4 5 4 4 4;2 3 4 2 3 4 5;3 4 4 5 5 2 3];
S1 = unique(S);

その他の回答 (1 件)

Andrei Bobrov
Andrei Bobrov 2013 年 10 月 24 日
A = unique(S).';

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by