Documentation Center

  • Trial Software
  • Product Updates

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

Size of a mappoint vector

Create a mappoint vector and get its size.

coast = load('coast');
p = mappoint(coast.lat, coast.long);
size(p)
ans =

        9865           1

The second dimension is always 1.

See Also

|

Was this topic helpful?