fieldnames

Return dynamic property names of geographic or planar vector

Description

example

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

Examples

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.

fieldnames(ms)
ans = 18x1 cell array
    {'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.

See Also

|

Introduced in R2012a