Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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

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?