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

Size of mappoint 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

mappoint 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 mappoint vector and get its size.

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

        9865           1

See Also

|

Was this topic helpful?