フィルターのクリア

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 Center および File ExchangeHistograms についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by