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

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?