cell: Create a cell array (a matrix of lists)

Description Usage Arguments Value Note See Also Examples

Description

Create a cell array as in MATLAB.

Usage

1

Arguments

...

Dimensions for the cell array.

Value

A list of empty lists.

Note

This is a modified version of the same function in the matlab R-package.

See Also

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
cell(3)
cell(2,3)

## define possible values of 2 categorical design variable
x.space <- cell(1,2)
x.space[1,1] <- list(seq(10,100,10))
x.space[1,2] <- list(seq(10,300,10))
x.space
x.space[1,1]
x.space[1,2]

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