Redian新闻
>
[转载] 问一个画histogram的问题
avatar
[转载] 问一个画histogram的问题# Computation - 科学计算
i*e
1
【 以下文字转载自 Statistics 讨论区,原文如下 】
发信人: iamfine (iamfine), 信区: Statistics
标 题: 问一个画histogram的问题
发信站: Unknown Space - 未名空间 (Tue Apr 20 17:12:10 2004) WWW-POST
用matlab可以在一个图里画多个sample的histogram吗?(用同一个x,y坐标轴)
其他软件可以吗?
avatar
i*e
2

-----------What's this?
avatar
f*e
3
sure.
hist(a);
hold on;
hist(b);
hold off;

【在 i*****e 的大作中提到】
:
: -----------What's this?

avatar
i*e
4
but how to distinguish different samples?
your way made the histograms mixed. Is there anyway to set the color or other
visual properties of histogram? the only parameters in command hist() is about
# of bins or center of bins? correct?



【在 f****e 的大作中提到】
: sure.
: hist(a);
: hold on;
: hist(b);
: hold off;

avatar
a*k
5
try use stairs once you get the countes using hist. Then you can assign color

【在 i*****e 的大作中提到】
: 【 以下文字转载自 Statistics 讨论区,原文如下 】
: 发信人: iamfine (iamfine), 信区: Statistics
: 标 题: 问一个画histogram的问题
: 发信站: Unknown Space - 未名空间 (Tue Apr 20 17:12:10 2004) WWW-POST
: 用matlab可以在一个图里画多个sample的histogram吗?(用同一个x,y坐标轴)
: 其他软件可以吗?

avatar
i*e
6
It finally worked out. Thank you!

color

【在 a*********k 的大作中提到】
: try use stairs once you get the countes using hist. Then you can assign color
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。