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

Number of elements in geoshape vector

Syntax

N = length(s)

Description

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

Input Arguments

s

geoshape vector.

Output Arguments

N

Length of the geoshape vector, s.

Examples

expand all

Create a geoshape vector and find its length.

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

     1


ans =

        9865

See Also

Was this topic helpful?