Add Matrix as Array element

13 visualizaciones (últimos 30 días)
Joel Biffin
Joel Biffin el 27 de Nov. de 2017
Respondida: Walter Roberson el 27 de Nov. de 2017
I currently have a large loop which generates a matrix containing probabilities generated by some algorithm. I want to, after generating such a matrix, add this to an array which will contain such probability matrices for every time the parent loop iterates. Is there such functionality in Matlab?

Respuestas (1)

Walter Roberson
Walter Roberson el 27 de Nov. de 2017
You could also consider using a multidimensional array. Multidimensional arrays use memory more efficiently than cell arrays.
Be sure to pre-allocate the memory for the array you use, for performance reasons.

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by