How to built a histogram in MatLab as Excel did it?

3 ビュー (過去 30 日間)
Serhii Sheinych
Serhii Sheinych 2019 年 11 月 21 日
コメント済み: Serhii Sheinych 2019 年 11 月 21 日
I have a vector of 7 integer values and try to built a histogram, but I have a result, which i did not expected.
I've built a histogram in Matlab, but it has different view, comparing to excel? How to built a histogram like on the first photo, but in Matlab?

採用された回答

dpb
dpb 2019 年 11 月 21 日
y=[14;21;14;9;16;10;16];
bar(y)
That's a bar plot, not histogram.
  1 件のコメント
Serhii Sheinych
Serhii Sheinych 2019 年 11 月 21 日
Thank You very much!

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

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