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 length or dim depending on argument X.

Value

Returns object of 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-8 Index]