Overlaying histogram with lines and not bars

6 ビュー (過去 30 日間)
Mads Svendsen-Tune
Mads Svendsen-Tune 2011 年 5 月 14 日
Hi all.
Can somebody tell me how to plot histograms with lines instead of bars in Matlab?
Thanks.

採用された回答

bym
bym 2011 年 5 月 14 日
did you want something like
x = 5+2*randn(1000,1);
h = histc(x,(0:9));
stem(h,'b')
or like
plot(h,(0:9))
  1 件のコメント
Mads Svendsen-Tune
Mads Svendsen-Tune 2011 年 5 月 14 日
Ah - that works nicely. Thanks a lot.

サインインしてコメントする。

その他の回答 (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