Clearing a structure variable
24 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello
If I have the following structure:
a.h1 = 800; a.caseid = 'HM';
How do I clear a.h1?
Thanks
0 commentaires
Réponse acceptée
Andrei Bobrov
le 9 Sep 2011
a.h1 = 800; a.caseid = 'HM';
clear a.h1
a.h1 = []
remove field 'h1'
rmfield(a,'h1')
0 commentaires
Plus de réponses (1)
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!