This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.


Class: mappoint

Remove properties from mappoint vector


pF = rmprop(p,propname)
pF = rmprop(p,propnames)


pF = rmprop(p,propname) removes the property specified by the character vector, propname from the mappoint vector, p.

pF = rmprop(p,propnames) removes all the properties specified in the cell array, propnames, from the mappoint vector, p. If propnames contains a coordinate property an error is issued.

    Note:   rmprop cannot remove X, Y and Metadata fields and the character vector specified is case sensitive.

Input Arguments


mappoint vector.

Output Arguments


Modified mappoint vector with the specified property(s) removed.


expand all

Create a mappoint vector and remove a property from the vector.

p = mappoint(shaperead('tsunamis'));
p2 = rmprop(p, 'Validity')
p2 = 

 162x1 mappoint vector with properties:

 Collection properties:
       Geometry: 'point'
       Metadata: [1x1 struct]
 Feature properties:
              X: [1x162 double]
              Y: [1x162 double]
           Year: [1x162 double]
          Month: [1x162 double]
            Day: [1x162 double]
           Hour: [1x162 double]
         Minute: [1x162 double]
         Second: [1x162 double]
       Val_Code: [1x162 double]
     Cause_Code: [1x162 double]
          Cause: {1x162 cell}
         Eq_Mag: [1x162 double]
        Country: {1x162 cell}
       Location: {1x162 cell}
     Max_Height: [1x162 double]
       Iida_Mag: [1x162 double]
      Intensity: [1x162 double]
     Num_Deaths: [1x162 double]
    Desc_Deaths: [1x162 double]
Was this topic helpful?