table remove repeated columns

17 visualizzazioni (ultimi 30 giorni)
Patrick Brown
Patrick Brown il 15 Mar 2017
Risposto: Niraj Sanghvi il 16 Mar 2017
I have a table call Values with two fields
Velocity Acceleration
________ ____________
10 30
10 20
20 20
10 30
30 50
and I want to remove the rows that are repeated with are row and therefore get this table
Velocity Acceleration
________ ____________
10 30
10 20
20 20
30 50
thanks!

Risposte (1)

Niraj Sanghvi
Niraj Sanghvi il 16 Mar 2017
I believe the unique function should work in this case:
uniqueValues = unique(Values);

Categorie

Scopri di più su Tables in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by