plot and hist in matlab
2 ビュー (過去 30 日間)
古いコメントを表示
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
0 件のコメント
採用された回答
Matt Fig
2011 年 4 月 7 日
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)
5 件のコメント
Matt Fig
2011 年 4 月 7 日
Does the second hist cover up the first? Try hist(True_probability,x) first, then doing hist(proestimated,x).
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Bar Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!