size: Function written to match MATLAB's size function

View source: R/size.R

sizeR Documentation

Function written to match MATLAB's size function

Description

Function written to match MATLAB's size function

Usage

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(), rand(), randn(), tic(), toc(), zeros()

Examples


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

size(10)

size(zeros(4,7))


PopED documentation built on Oct. 8, 2024, 1:07 a.m.