Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this 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?