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: 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

Create a mapshape vector and get its length.

load coastlines
s = mapshape(coastlat, coastlon);
length(s)
length(coastlat)
ans =

     1


ans =

        9865

See Also

Was this topic helpful?