size {matlab}R Documentation

MATLAB size function

Description

Provides dimensions of X.

Usage

size(X, dimen)

Arguments

X numeric vector or matrix
dimen numeric scalar specifies particular dimension

Details

This is an S4 generic function. Invokes base::length or base::dim depending on argument X.

Value

Returns class size_t containing the dimensions of input argument.

Author(s)

P. Roebuck, roebuck@mdanderson.org

Examples

size(1:8)
size(matrix(1:8, 2, 4))
size(matrix(1:8, 2, 4), 2)

[Package matlab version 0.7-7 Index]