MATLAB Answers

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

3 views (last 30 days)
Serhii Sheinych
Serhii Sheinych on 21 Nov 2019
Commented: Serhii Sheinych on 21 Nov 2019
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?

  0 Comments

Sign in to comment.

Accepted Answer

dpb
dpb on 21 Nov 2019
y=[14;21;14;9;16;10;16];
bar(y)
That's a bar plot, not histogram.

More Answers (0)

Sign in to answer this question.