【问题标题】:How to change BinWidth in histfit?如何更改 histfit 中的 BinWidth?
【发布时间】:2020-08-28 06:08:10
【问题描述】:

如何使用 histfit 更改 bin 宽度?

或者也许,或者使用histogram(x,'BinWidth',0.01),然后画一条曲线?

【问题讨论】:

  • 宽度和bin的个数有关吧?改变它

标签: matlab statistics matlab-figure


【解决方案1】:

我找到了办法。不是很优雅,但它有效:

    histogram(x,'BinWidth',0.1);
    h1=histfit(x);
    h1(1).Visible='off';

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-12-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-06-10
    • 2021-03-21
    • 2014-09-05
    相关资源
    最近更新 更多