Making a histogram with data from excel

14 visualizzazioni (ultimi 30 giorni)
Allend Botani
Allend Botani il 11 Nov 2018
Modificato: madhan ravi il 11 Nov 2018
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?

Risposte (1)

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

Tag

Prodotti


Release

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by