Remove redundancy values from matrix
Ältere Kommentare anzeigen
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
Weitere Antworten (1)
Andrei Bobrov
am 24 Okt. 2013
A = unique(S).';
Kategorien
Mehr zu Resizing and Reshaping Matrices finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!