Main Content

fieldnames

Return dynamic property names of geographic or planar vector

Description

names = fieldnames(v) returns the names of the dynamic properties of geographic or planar vector v.

example

Examples

collapse all

Create a mapshape vector.

ms = mapshape(shaperead('tsunamis.shp'));

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.

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'}

Input Arguments

collapse all

Geographic or planar vector, specified as a geopoint, geoshape, mappoint, or mapshape object.

Output Arguments

collapse all

Names of dynamic properties of vector v, returned as a cell array.

Version History

Introduced in R2012a

See Also

|