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!