Quantcast

Documentation Center

  • Trial Software
  • Product Updates

size

Class: geopoint

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

Size of a geopoint vector

Create a geopoint vector and find its size.

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

        9865           1

The second dimension is always 1.

See Also

|

Was this topic helpful?