nncell2mat
Combine neural network cell data into matrix
Syntax
[y,i,j] nncell2mat(x)
Description
[y,i,j] nncell2mat(x)
takes a cell array of matrices and returns,
y | Cell array formed by concatenating matrices |
i | Array of row sizes |
ji | Array of column sizes |
The row and column sizes returned by nncell2mat
can be used to convert the returned matrix back into a cell of matrices
with mat2cell
.
Examples
Here neural network data is converted to a matrix and back.
c = {rands(2,3) rands(2,3); rands(5,3) rands(5,3)}; [m,i,j] = nncell2mat(c) c3 = mat2cell(m,i,j)
Version History
Introduced in R2010b