disp

Class: geopoint

Display geopoint vector

Syntax

disp(P)

Description

disp(P) prints the size of the geopoint vector, P, and its properties and dynamic properties, if they exist. If the command window is large enough, the values of the properties are also shown, otherwise only their size is shown. You can control the display of the numerical values by using the format command.

Input Arguments

P

geopoint vector

Examples

expand all

Display a geopoint vector

Create a geopoint vector and display it.

p = geopoint(shaperead('worldcities', 'UseGeo', true));
disp(p)
disp(p(1:2))
 318x1 geopoint vector with properties:

 Collection properties:
     Geometry: 'point'
     Metadata: [1x1 struct]
 Feature properties:
     Latitude: [1x318 double]
    Longitude: [1x318 double]
         Name: {1x318 cell}

 2x1 geopoint vector with properties:

 Collection properties:
     Geometry: 'point'
     Metadata: [1x1 struct]
 Feature properties:
     Latitude: [5.2985 24.6525]
    Longitude: [-3.9509 54.7589]
         Name: {'Abidjan' 'Abu Dhabi'}

See Also

|

Was this topic helpful?