Info
此问题已关闭。 请重新打开它进行编辑或回答。
How to draw an histogram?
1 次查看(过去 30 天)
显示 更早的评论
How do I draw an histogram knowing the frequency of all the individual elements in a 150x150 matrix appears using matlab?
3 个评论
DGM
2024-4-4
Given that my answer has already been provided, I see no reason to keep it or to keep this thread. Other mods are welcome to tidy up the others, but I'm just going to close this one.
回答(1 个)
DGM
2024-4-4
编辑:DGM
2024-4-4
A = randn(150,150); % normally distributed random numbers
histogram(A) % looks like a gaussian to me
There are many different options, but I'm just using defaults here. If you have specific bin edges or a preferred method of calculating bin locations, see the documentation for details on how to set that up.
1 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!