vertcat
Vertically concatenate geographic or planar vectors
Syntax
Description
Examples
Vertically Concatenate Mapshape Vectors
Create three mapshape vectors. The second vector has two features and is size 2x1.
ms1 = mapshape(42, -110, 'Temperature', 65, 'Name', 'point1'); ms2 = mapshape({50, 50.1}, {-101 -101.4}, 'Temperature', {73.2 77}, ... 'Name', {'point2','point3'}); ms3 = mapshape(42.1, -110.4, 'Temperature', 65.5, 'Name', 'point4');
Vertically concatenate the vectors into a single mapshape vector.
ms = vertcat(ms1, ms2, ms3)
ms = 4x1 mapshape vector with properties: Collection properties: Geometry: 'line' Metadata: [1x1 struct] Vertex properties: (4 features concatenated with 3 delimiters) X: [42 NaN 50 NaN 50.1000 NaN 42.1000] Y: [-110 NaN -101 NaN -101.4000 NaN -110.4000] Temperature: [65 NaN 73.2000 NaN 77 NaN 65.5000] Feature properties: Name: {'point1' 'point2' 'point3' 'point4'}
The concatenated mapshape vector ms
is size 4x1 and has four features. Note that the property 'Temperature'
is a Vertex property in ms
because it is a Vertex property in ms2
, even though it is a Feature property in ms1
and ms3
.
Input Arguments
Output Arguments
Version History
Introduced in R2012a
See Also
MATLAB 命令
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)