Documentation

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

Find Length of geopoint Vector

Create a geopoint vector and find its length.

coast = load('coast');
p = geopoint(coast.lat, coast.long);
length(p)
length(coast.lat)
ans =

        9865


ans =

        9865

See Also

Was this topic helpful?