Learn R Programming

matlab2r (version 1.5.0)

cell: Cell array

Description

Creates an array of zeros

Usage

cell(n, sz = c(n, n), expandable = FALSE, ...)

Value

An array of zeroes with the dimensions passed on call

Arguments

n

a the first dimension (or both, if sz is not passed)

sz

the second dimension (or 1st and 2nd, if not passed)

expandable

if TRUE, output is a list (so it can take different lengths)

...

Other dimensions

Examples

Run this code
cell(5)
cell(5, 2)

Run the code above in your browser using DataLab