Return dynamic property names of geographic or planar vector
names = fieldnames(v)
example
names = fieldnames(v) returns the names of the dynamic properties of geographic or planar vector v.
names
v
collapse all
Create a mapshape vector.
ms = mapshape(shaperead('tsunamis'));
Display all dynamic properties of the mapshape vector. The displayed properties exclude the Collection properties Geometry and Metadata and the required mapshape Vertex properties X and Y.
Geometry
Metadata
X
Y
fieldnames(ms)
ans = 18x1 cell {'Year' } {'Month' } {'Day' } {'Hour' } {'Minute' } {'Second' } {'Val_Code' } {'Validity' } {'Cause_Code' } {'Cause' } {'Eq_Mag' } {'Country' } {'Location' } {'Max_Height' } {'Iida_Mag' } {'Intensity' } {'Num_Deaths' } {'Desc_Deaths'}
geopoint
geoshape
mappoint
mapshape
Geographic or planar vector, specified as a geopoint, geoshape, mappoint, or mapshape object.
Names of dynamic properties of vector v, returned as a cell array.
disp | properties
disp
properties
You have a modified version of this example. Do you want to open this example with your edits?