how can i store all simulation results from gibbs sampling ?
1 次查看(过去 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 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!