Check if the value for a field in a struct exists
11 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
black cat
el 10 de Feb. de 2025
Comentada: black cat
el 10 de Feb. de 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 comentarios
Respuesta aceptada
Ver también
Categorías
Más información sobre Structures en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!