nncell2mat
(To be removed) Combine neural network cell data into matrix
nncell2mat 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
[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 R2010bSee Also
Time Series
Modeler | fitrnet (Statistics and Machine Learning Toolbox) | fitcnet (Statistics and Machine Learning Toolbox) | trainnet | trainingOptions | dlnetwork