Creating a histogram

1 次查看(过去 30 天)
John
John 2012-3-31
Hi,
Is the correct syntax to create a histogram of data X with 22 bins the following
hist(X,22)
When I type it noting happens?

采纳的回答

Wayne King
Wayne King 2012-3-31
That is correct. When you say "nothing happens", do you mean that the line of code executes, but no figure is produced? If so, try
clf;
X = randn(1000,1);
hist(X,22);
  3 个评论
John
John 2012-3-31
Got it working, thanks
Wayne King
Wayne King 2012-3-31
yea, sorry about that! I fixed that :)

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Histograms 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by