MATLAB Answers

0

Making a histogram with data from excel

Asked by Allend Botani on 11 Nov 2018 at 5:32
Latest activity Edited by madhan ravi
on 11 Nov 2018 at 5:37
I have an Excel document with data points. I have entered in
D=[2437, 2437, ..., 2411];
then i attempt to make a histogram with hist(D,10) but it says
error
variable D not known.
Didn't I just define D?

  0 Comments

Sign in to comment.

Tags

Products


Release

R2018b

1 Answer

Answer by madhan ravi
on 11 Nov 2018 at 5:36

[num,~,~]=xlsread('myexcelfile.xlsx') %if it doesn't work upload excel file
D=num;
histogram(D,10)

  0 Comments

Sign in to comment.