Unable to read excel file

3 次查看(过去 30 天)
Hi
I'm unable to read this excel file. I tried restarting my computer, but it does not work.
Anybody knows what the issue could be?
readtable(SMHI2.xlsx);
Unable to resolve the name 'SMHI2.xlsx'.
  2 个评论
Stephen23
Stephen23 2023-4-6
"Anybody knows what the issue could be?"
readtable('SMHI2.xlsx')
% ^ ^ missing quotation characters
Joel
Joel 2023-4-6
Thank you, mistake by me

请先登录,再进行评论。

采纳的回答

Venkat Siddarth
Venkat Siddarth 2023-4-6
编辑:Venkat Siddarth 2023-4-6
Hi @Joel,
From the code snippet you shared,I found that you are missing quotes around the file name parameter value.The syntax of the readtable function with file name is as follows:
readtable('<filename>');
I hope this resolves the issue
Thanks
Venkat Siddarth V

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

产品


版本

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by