Check if the value for a field in a struct exists
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
black cat
am 10 Feb. 2025
Kommentiert: black cat
am 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 Kommentare
Akzeptierte Antwort
Siehe auch
Kategorien
Mehr zu Structures finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!