Documentation Center

  • Trial Software
  • Product Updates

vertcat

Class: geoshape

Vertical concatenation for geoshape vectors

Syntax

s = vertcat(s1,s2, ...)

Description

s = vertcat(s1,s2, ...) vertically concatenates the geoshape vector, s1, s2, and so on. If the class type of any property is a cell array, then the resultant field in the output s will also be a cell array.

Input Arguments

s1, s2, ...

geoshape vectors to be concatenated.

Output Arguments

s

Concatenated geoshape vector.

Examples

expand all

Concatenate geoshape vectors

Create several geoshape vectors and concatenate them.

s1 = geoshape(42, -110, 'Temperature', 65, 'Name', 'point1');
s2 = geoshape( 42.1, -110.4, 'Temperature', 65.5, 'Name', 'point2');
s = vertcat(s1, s2)
s = 

 2x1 geoshape vector with properties:

 Collection properties:
       Geometry: 'line'
       Metadata: [1x1 struct]
 Vertex properties:
  (2 features concatenated with 1 delimiter)
       Latitude: [42 NaN 42.1000]
      Longitude: [-110 NaN -110.4000]
 Feature properties:
    Temperature: [65 65.5000]
           Name: {'point1' 'point2'}

See Also

Was this topic helpful?