Filter löschen
Filter löschen

Remove redundancy values from matrix

1 Ansicht (letzte 30 Tage)
Anusha
Anusha am 24 Okt. 2013
Beantwortet: Wayne King am 24 Okt. 2013
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]

Akzeptierte Antwort

Wayne King
Wayne King am 24 Okt. 2013
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);

Weitere Antworten (1)

Andrei Bobrov
Andrei Bobrov am 24 Okt. 2013
A = unique(S).';

Kategorien

Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by