Main Content

cellmat

Create cell array of matrices

Syntax

cellmat(A,B,C,D,v)

Description

cellmat(A,B,C,D,v) takes four integer values and one scalar value v, and returns an A-by-B cell array of C-by-D matrices of value v. If the value v is not specified, zero is used.

Examples

Here two cell arrays of matrices are created.

cm1 = cellmat(2,3,5,4)
cm2 = cellmat(3,4,2,2,pi)

Version History

Introduced in R2010b

See Also