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

조회 수: 1 (최근 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.

추가 답변 (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