Quantcast

Documentation Center

  • Trial Software
  • Product Updates

disp

Class: geoshape

Display geoshape vector

Syntax

disp(s)

Description

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

geoshape vector.

Examples

expand all

Display a geoshape vector

Create a geoshape vector and display it.

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

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

 2x1 geoshape vector with properties:

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

See Also

|

Was this topic helpful?