Add Matrix as Array element
14 ビュー (過去 30 日間)
古いコメントを表示
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?
0 件のコメント
回答 (1 件)
Walter Roberson
2017 年 11 月 27 日
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.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Creating and Concatenating Matrices についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!