Quantcast

Documentation Center

  • Trial Software
  • Product Updates

size

Class: mapshape

Size of mapshape vector

Syntax

val = size(s)
val = size(s,1)
val = size(s, n)
[m,k] = size(s)

Description

val = size(s) returns the vector [length(val), 1].

val = size(s,1) returns the length of s.

val = size(s, n) returns 1 for n >= 2.

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

Input Arguments

s

mapshape vector.

n

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

Output Arguments

val

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

m

Length of s.

k

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

Examples

expand all

Size of a mapshape vector

Create a mapshape vector and get its size.

structArray = shaperead('worldrivers');
s= mapshape(structArray);
structSize = size(structArray)
sSize = size(s)
structSize =

   128     1


sSize =

   128     1

The second dimension is always 1.

See Also

|

Was this topic helpful?