Histogram with logarithmic bins and normalized

后端 未结 2 1617
灰色年华
灰色年华 2021-01-15 23:32

I would like to make a histogram of every column of a matrix, but I want the bins to be logarithmic and also normalized. And after I create the histogram I want to make a f

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-16 00:15

    I think the correct syntax would be Normalization. To make it logarithmic, you have to change the axes object. For example :

    ha = axes;
    y = histogram( x,'Normalization','probability' );
    ha.YScale = 'log';
    

提交回复
热议问题