美文网首页
待完成:matlab 直方图

待完成:matlab 直方图

作者: 九剑至尊 | 来源:发表于2017-06-01 22:59 被阅读0次
%直方图或者频率统计
[y,x]=hist(d2d,10);%d2d是要分析的一列数据,10是分成的分组数
bar(x,y/sum(y)*100,'FaceColor','b','EdgeColor','w');box off
xlabel('变量');
ylabel('%')
set(gca,'XLim',[0 1]);%X轴的数据显示范围
set(gca,'XTick',[0:0.1:1]);%设置要显示坐标刻度

python
http://www.jianshu.com/p/edf46a6c091b

相关文章

网友评论

      本文标题:待完成:matlab 直方图

      本文链接:https://www.haomeiwen.com/subject/xdlyfxtx.html