Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

how to delete same cols from a matrix

2 visualizaciones (últimos 30 días)
Brian Kim
Brian Kim el 3 de Mzo. de 2017
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
for example, a=[4 5 6 5 6 4; 4 6 5 3 5 4; 4 7 2 8 2 4; 4 2 4 7 4 4; 4 3 9 1 9 4;] is.
so, row=1 & 5 and row =2 & 4 is same.
what i want is to delete same row. but each ones must remain.

Respuestas (1)

KSSV
KSSV el 3 de Mzo. de 2017
doc unique
b = unique(a', 'rows')'

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by