length

Class: mapshape

Number of elements in mapshape vector

Syntax

N = length(s)

Description

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

Input Arguments

s

mapshape vector.

Output Arguments

N

Length of the mapshape vector, s.

Examples

expand all

Find Length of mapshape Vector

Create a mapshape vector and get its length.

coast = load('coast');
s = mapshape(coast.lat, coast.long);
length(s)
length(coast.lat)
ans =

     1


ans =

        9865

See Also

Was this topic helpful?