how can i store all simulation results from gibbs sampling ?
3 views (last 30 days)
Show older comments
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 Comments
Accepted Answer
Muruganandham Subramanian
on 29 Nov 2012
Check this:
for i=1:3
a{i}=i*ones(3);
end
b=cell2mat(a)
2 Comments
Muruganandham Subramanian
on 6 Dec 2012
try this:
for i=1:3
a{i}=i*ones(3);
d(:,:,i)=a{i};
end
More Answers (0)
See Also
Categories
Find more on Specialized Power Systems in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!