Check if the value for a field in a struct exists
7 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
black cat
il 10 Feb 2025
Commentato: black cat
il 10 Feb 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 Commenti
Risposta accettata
Vedere anche
Categorie
Scopri di più su Structures in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!