Comparing two structures and find the common
Mostra commenti meno recenti
I need to compare two strctures and find the common between them and then keep the common fields as the new structure.
4 Commenti
Geoff Hayes
il 10 Mar 2019
Praveen - please clarify what you mean by the common between them. Do the structures have fields that you want to compare? Or something else? Please provide a small example.
Praveen Kumar Pakkirisamy
il 10 Mar 2019
KALYAN ACHARJYA
il 10 Mar 2019
structure_1={'field1','field2','field3'};
structure_2={'field1','field4','field3'};
structure_1=intersect(structure_1,structure_2)
madhan ravi
il 10 Mar 2019
Sir Walter has given the answer already before 24mins..
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Structures in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!