hist:直接画出histogram
2
histc
计算y轴坐标点:
range=0:0.05:1;
coordinate=histc(data,range)
hist:
octave:54> x = randn(10000,1);
octave:55> hist(x,40)
octave:56> hold on
histc:
octave:61> range=-4:0.2:4;
octave:62> xx = histc(x,range);
octave:59> plot(range,xx,"r",range,xx,"b-")
网友评论