Remove redundancy values from matrix

8 views (last 30 days)
Anusha
Anusha on 24 Oct 2013
Answered: Wayne King on 24 Oct 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]

Accepted Answer

Wayne King
Wayne King on 24 Oct 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);

More Answers (1)

Andrei Bobrov
Andrei Bobrov on 24 Oct 2013
A = unique(S).';

Categories

Find more on Matrices and Arrays in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!