disp

Class: mapshape

Display mapshape vector

Syntax

disp(s)

Description

disp(s) prints the size of the mapshape vector, s, 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

s

mapshape vector.

Examples

expand all

Display a mapshape vector

Create a mapshape vector and display it.

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

 Collection properties:
    Geometry: 'point'
    Metadata: [1x1 struct]
 Vertex properties:
  (318 features concatenated with 317 delimiters)
           X: [1x635 double]
           Y: [1x635 double]
 Feature properties:
         Lon: [1x318 double]
         Lat: [1x318 double]
        Name: {1x318 cell}

 2x1 mapshape vector with properties:

 Collection properties:
    Geometry: 'point'
    Metadata: [1x1 struct]
 Vertex properties:
  (2 features concatenated with 1 delimiter)
           X: [0 NaN 0]
           Y: [0 NaN 0]
 Feature properties:
         Lon: [-3.9509 54.7589]
         Lat: [5.2985 24.6525]
        Name: {'Abidjan' 'Abu Dhabi'}

See Also

|

Was this topic helpful?