Deduplicate Rows from Struct
11 views (last 30 days)
Show older comments
Rounak Saha Niloy
on 9 Aug 2022
Commented: Rounak Saha Niloy
on 9 Aug 2022
I have the following struct-
Database.x = [1 0 1
2 0 2
3 0 1
1 0 1];
Database.f = [10 20
20 30
30 40
10 15];
In Database.x, there are duplicate rows (1st and 4th one). I want to deduplicate them and based on that, I want to remove the corresponding row from Databse.f
How do I do this?
Accepted Answer
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!