Deduplicate Rows from Struct
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Rounak Saha Niloy
il 9 Ago 2022
Commentato: Rounak Saha Niloy
il 9 Ago 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?
2 Commenti
Matt J
il 9 Ago 2022
I want to remove the corresponding row from Databse.f
In referene to your example, how would you decide whether the first or fourth row of f should be removed?
Risposta accettata
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Structures 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!