Ark*_*avo 3 matlab frequency-distribution
我在文本文件中有500个数值(范围从1到25000)的原始观察,我希望在MATLAB中进行频率分布.我确实尝试过直方图(hist),但是我更喜欢频率分布曲线而不是块和条形.
任何帮助表示赞赏!
如果将两个输出参数传递给HIST,则将同时获得x轴和y轴值.然后您可以根据需要绘制数据.例如,
[counts, bins] = hist(mydata);
plot(bins, counts); %# get a line plot of the histogram
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
22740 次 |
最近记录: |