Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the 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?