Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在一个文本文件中有 500 个数值(范围从 1 到 25000)的原始观察结果,我希望在 MATLAB 中进行频率分布。我确实尝试了直方图(hist),但是我更喜欢频率分布曲线而不是块和条。
任何帮助表示赞赏!
如果将两个输出参数传递给HIST,您将同时获得 x 轴和 y 轴值。然后,您可以根据需要绘制数据。例如,
[counts, bins] = hist(mydata); plot(bins, counts); %# get a line plot of the histogram
您可以尝试内核平滑密度估计