cat
Concatenate geographic or planar vector
Syntax
Description
Examples
Concatenate Two Geopoint Vectors
Create two geopoint vectors. The first vector has one feature, and the second vector has two features. The vectors have different dynamic properties.
gp1 = geopoint(52,-101, 'Weather','Cloudy'); gp2 = geopoint([42 42.2], [-110.5 -110.7], 'Temperature', [65.6 63.2]);
Concatenate the vectors into a single geopoint vector. Note that the first input argument must be 1.
p = cat(1,gp1,gp2)
p = 3x1 geopoint vector with properties: Collection properties: Geometry: 'point' Metadata: [1x1 struct] Feature properties: Latitude: [52 42 42.2000] Longitude: [-101 -110.5000 -110.7000] Weather: {'Cloudy' '' ''} Temperature: [0 65.6000 63.2000]
The concatenated vector has three features, and all features have all dynamic properties. Default property values are used when the value was not specified in the original geopoint vector. For example, the 'Temperature'
value of the first feature is set to 0 since no 'Temperature'
value was specified in gp1
.
Input Arguments
Output Arguments
Version History
Introduced in R2012a
See Also
Ouvrir l'exemple
Vous possédez une version modifiée de cet exemple. Souhaitez-vous ouvrir cet exemple avec vos modifications ?
Commande MATLAB
Vous avez cliqué sur un lien qui correspond à cette commande MATLAB :
Pour exécuter la commande, saisissez-la dans la fenêtre de commande de MATLAB. Les navigateurs web ne supportent pas les commandes 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)