MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB基础] 怎么用matlab画直方图 (https://www.labfans.com/bbs/showthread.php?t=8034)

xieyunfei 2009-05-02 09:48

怎么用matlab画直方图
 
目前用matlab画直方图,我只会用hist(x)函数,但是这样系统会自动返回上下限,我想自己设置上下限,该怎么办?我说的是x轴的变化范围,就是不是系统设置的最低分到最高分,我想设为0到100.该怎么用?
请大家帮帮忙.谢谢/

silas_xue 2009-05-02 15:07

回复: 怎么用matlab画直方图
 
lz 我不太清楚我是否已经了解清楚你的意思了 你看一下imhist( )函数和对应的matlab中的help说明

ttloveby 2009-05-02 20:47

回复: 怎么用matlab画直方图
 
自己写一个函数统计一下就可以了,axis()设定轴范围.

laosam280 2009-05-02 23:32

回复: 怎么用matlab画直方图
 
用axis函数,axis([xmin xmax ymin ymax)


所有时间均为北京时间。现在的时间是 03:03

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.