Number of elements in geopoint vector
N = length(P)
N = length(P) returns
the number of elements contained in the geopoint vector, P.
The result is equivalent to size(P,1).
Length of the geopoint vector, P.
Create a geopoint vector and find its length.
coast = load('coast');
p = geopoint(coast.lat, coast.long);