how to remove rows from structure array on matlab
Mostra commenti meno recenti
Let's say there are 2 structure arrays, A and B.
A is a 300x1 size structure, and B (112x1) is a subset of A, which means B is randomly selected from A.
I want to remove those rows from A so that the size of A becomes 118x1.
How can I deal with this problem??
1 Commento
James Tursa
il 23 Lug 2020
How did you randomly select B? Do you have indexes or a logical vector? The obvious thing to do would be to take the complement of that selection from A.
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!