Learn R Programming

PopED (version 0.3.2)

size: 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, isfield, ones, randn, randperm, rand, tic, toc, zeros

Examples

Run this code
# NOT RUN {
size(c(2,3,4,5,6))

size(10)

size(zeros(4,7))

# }

Run the code above in your browser using DataLab