MATLAB: Plot and hist in matlab

MATLAB

please anybody answer me How can I get two plot in one graph using bar or hist or plot
and how can I use ((hold and grid command)) with plot and hist
Thanks in advance

Best Answer

Two histograms:
x = -2.9:0.1:2.9;
y = randn(10000,1);
hist(y,x)
h = findobj(gca,'Type','patch');
set(h,'FaceColor','r','EdgeColor','w')
z = randn(size(y))/3;
hold on % make sure next one shows up.
hist(z,x)