isfield
Checks if a fieldname exists in a struct.
📝 Syntax
res = isfield(S, name)
res = isfield(S, C)
📥 Input argument
S - a struct
name - a string
C - a cell
📤 Output argument
res - a logical
📄 Description
isfield(A) returns true if name is a fieldname ofS.
💡 Examples
🔗 See also
🕔 History
Version
📄 Description
1.0.0
initial version
Last updated
Was this helpful?