This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Class: geopoint

Vertically concatenate geopoint vectors


P = vertcat(P1,P2, ...)


P = vertcat(P1,P2, ...) vertically concatenates the geopoint vector, P1, P2, and so on. If the class type of any property is a cell array, then the resultant field in the output P will also be a cell array.

Input Arguments

P1, P2, ...

geopoint vectors that need to be concatenated.

Output Arguments


Concatenated geopoint vector.


expand all

Create several geopoint vectors and concatenate them.

pt1 = geopoint(42, -110, 'Temperature', 65, 'Name', 'point1');
pt2 = geopoint( 42.1, -110.4, 'Temperature', 65.5, 'Name', 'point2');
pts = vertcat(pt1, pt2)
pts = 

 2x1 geopoint vector with properties:

 Collection properties:
       Geometry: 'point'
       Metadata: [1x1 struct]
 Feature properties:
       Latitude: [42 42.1000]
      Longitude: [-110 -110.4000]
    Temperature: [65 65.5000]
           Name: {'point1' 'point2'}
Was this topic helpful?