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.

length

Class: geopoint

Number of elements in geopoint vector

Syntax

N = length(P)

Description

N = length(P) returns the number of elements contained in the geopoint vector, P. The result is equivalent to size(P,1).

Input Arguments

P

geopoint vector.

Output Arguments

N

Length of the geopoint vector, P.

Examples

expand all

Create a geopoint vector and find its length.

load coastlines
p = geopoint(coastlat, coastlon);
length(p)
length(coastlat)
ans =

        9865


ans =

        9865

See Also

Was this topic helpful?