how can i store all simulation results from gibbs sampling ?
조회 수: 3 (최근 30일)
이전 댓글 표시
for example : for i=1:3 b=n*ones(3) end the result will be [3 3 3;3 3 3;3 3 3] BUT i want to save the hole result as [1 1 1;1 1 1;1 1 1;2 2 2;2 2 2;2 2 2;3 3 3;3 3 3;3 3 3] How can i do it????
댓글 수: 0
채택된 답변
Muruganandham Subramanian
2012년 11월 29일
Check this:
for i=1:3
a{i}=i*ones(3);
end
b=cell2mat(a)
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Specialized Power Systems에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!