table remove repeated columns

1 次查看(过去 30 天)
Patrick Brown
Patrick Brown 2017-3-15
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!

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Tables 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by