i*****e 发帖数: 159 | 1 【 以下文字转载自 Statistics 讨论区,原文如下 】
发信人: iamfine (iamfine), 信区: Statistics
标 题: 问一个画histogram的问题
发信站: Unknown Space - 未名空间 (Tue Apr 20 17:12:10 2004) WWW-POST
用matlab可以在一个图里画多个sample的histogram吗?(用同一个x,y坐标轴)
其他软件可以吗? |
i*****e 发帖数: 159 | 2
-----------What's this? |
f****e 发帖数: 15 | 3 sure.
hist(a);
hold on;
hist(b);
hold off;
【在 i*****e 的大作中提到】 : : -----------What's this?
|
i*****e 发帖数: 159 | 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;
|
a*********k 发帖数: 17 | 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坐标轴) : 其他软件可以吗?
|
i*****e 发帖数: 159 | 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
|