Error using xlsread.

1 次查看(过去 30 天)
Jenice Chen
Jenice Chen 2018-12-26
重新打开: Guillaume 2019-1-16
k=1;
N=zeros(16*k+1,150*k+1);
xlsFile='ConflictCasesC1-0418-1.xls';
case_matrix=xlsread(xlsFile,'crash_matrix_on_link');
A=case_matrix(:,[10 11]); % X1 Y1
mat_size=size(A);
Error in histagram (line 5)
case_matrix=xlsread(xlsFile,'crash_matrix_on_link');
  2 个评论
KSSV
KSSV 2018-12-26
is xlsread inbuilt function? Or you have the function?
Jenice Chen
Jenice Chen 2018-12-26
It may be inbuilt function.
I've figured out the reason - the xls. file is put into the wrong folder.
Thank you.

请先登录,再进行评论。

回答(1 个)

madhan ravi
madhan ravi 2018-12-26
doc xlsread % second argument specifes the worksheet to be read

类别

Help CenterFile Exchange 中查找有关 Software Development Tools 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by