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.

size

Class: geopoint

Return size of geopoint vector

Syntax

SZ = size(P)
SZ = size(P,1)
SZ = size(P, n)
[m,k] = size(P)

Description

SZ = size(P) returns the vector [length(P), 1].

SZ = size(P,1) returns the length of P.

SZ = size(P, n) returns 1 for n >= 2.

[m,k] = size(P) returns length(P) for m and 1 for k.

Input Arguments

P

geopoint vector.

n

Number of the dimension at which size of P is required.

Output Arguments

SZ

Vector of the form [length(P), 1].

m

Length of P.

k

Length of second dimension of P. k is always 1.

Examples

expand all

Create a geopoint vector and find its size. The second dimension is always 1.

load coastlines
p = geopoint(coastlat,coastlon);
size(p)
ans =

        9865           1

Was this topic helpful?