How to Expand an Existing Structure Array?
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Rightia Rollmann
le 4 Mar 2017
Réponse apportée : Walter Roberson
le 4 Mar 2017
As a simple example, I create the struct B with one field:
B.D = 1;
How do I set parent struct A for the above-mentioned struct B?
A.B.D
How do I set a field between B and D?
B.C.D
0 commentaires
Réponse acceptée
Walter Roberson
le 4 Mar 2017
"How do I set parent struct A for the above-mentioned struct B?"
A.B = B;
"How do I set a field between B and D?"
temp = B.D;
B = rmfield(B, 'D');
B.C.D = temp;
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Structures dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!