size: Function written to match MATLAB's size function

Description Usage Arguments Value See Also Examples

View source: R/size.R

Description

Function written to match MATLAB's size function

Usage

1
size(obj, dimension.index = NULL)

Arguments

obj

An object you want to know the various dimensions of. Typically a matrix.

dimension.index

Which dimension you are interested in.

Value

The dimensions of the object or specific dimension you are interested in.

See Also

Other MATLAB: cell(), diag_matlab(), feval(), fileparts(), isempty(), ones(), randn(), rand(), tic(), toc(), zeros()

Examples

1
2
3
4
5
size(c(2,3,4,5,6))

size(10)

size(zeros(4,7))

PopED documentation built on May 21, 2021, 5:08 p.m.