Borrar filtros
Borrar filtros

Remove redundancy values from matrix

3 visualizaciones (últimos 30 días)
Anusha
Anusha el 24 de Oct. de 2013
Respondida: Wayne King el 24 de Oct. de 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]

Respuesta aceptada

Wayne King
Wayne King el 24 de Oct. de 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);

Más respuestas (1)

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

Categorías

Más información sobre Matrices and Arrays en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by