Main Content

cellmat

(To be removed) Create cell array of matrices

cellmat will be removed in a future release. For more information, see Transition Legacy Neural Network Code to dlnetwork Workflows.

For advice on updating your code, see Version History.

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

collapse all