Making a histogram with data from excel

조회 수: 11 (최근 30일)
Allend Botani
Allend Botani 2018년 11월 11일
편집: madhan ravi 2018년 11월 11일
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?

답변 (1개)

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

카테고리

Help CenterFile Exchange에서 Histograms에 대해 자세히 알아보기

태그

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by