| MATLAB Function Reference | ![]() |
Determine if item is a MATLAB structure array field
Syntax
Description
tf = isfield(A,' field')
returns logical true (1) if field is the name of a field in the structure array A, and logical false (0) otherwise.
Examples
Given the following MATLAB structure,
patient.name = 'John Doe'; patient.billing = 127.00; patient.test = [79 75 73; 180 178 177.5; 220 210 205];
isfield identifies billing as a field of that structure.
See Also
struct, isstruct, iscell, isa, is*
| isevent (COM) | isfinite | ![]() |