Fields in a Structure
    7 vues (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
    Preetam Pal
 le 16 Août 2015
  
    
    
    
    
    Réponse apportée : Shivam
 le 30 Juil 2022
            How can I fetch the list of fields in a structure? Regards, Preetam
0 commentaires
Réponse acceptée
Plus de réponses (1)
  Shivam
 le 30 Juil 2022
        You can fetch the fields of a structure S using fieldname this way.
fields = fieldnames(S)
It returns the field names of the structure array S in a cell array.
0 commentaires
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!


