Check if the value for a field in a struct exists
    7 vues (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
    black cat
 le 10 Fév 2025
  
    
    
    
    
    Commenté : black cat
 le 10 Fév 2025
            A struct can have a field name with no value. For example:
A=struct('a',{})
How can I check if this is the case?
I tried 
isempty(A.a)
But an error says not enough input arguments. 
0 commentaires
Réponse acceptée
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!


