tf = isfield(s,name)
tf = isfield(s,names)
Name of the dynamic property.
Cell array of names of dynamic properties.
Create a geoshape vector and check is a field is present.
s = geoshape(-33.961, 18.484, 'Name', 'Cape Town') isfield(s, 'Latitude') isfield(s, 'Name')
s = 1x1 geoshape vector with properties: Collection properties: Geometry: 'line' Metadata: [1x1 struct] Vertex properties: Latitude: -33.9610 Longitude: 18.4840 Feature properties: Name: 'Cape Town' ans = 0 ans = 1
Note that Latitude returns 0 because it is not a dynamically added property.