" Error using readtable (line 198) An internal error occurred ". How can I solve this issue?
Show older comments
I am trying to load data stored in an Excel file (.xlsx) into MATLAB R2017a using readtable as in the following code:
data = readtable('Nuevo.xlsx');
However, when I run the command the following error message appears: " Error using readtable (line 198) An internal error occurred." I have tried to solve the issue providing the full path of the file but it also doesn't work. Can you please help me to find a solution?
5 Comments
DanRB
on 23 May 2018
Greg
on 24 May 2018
Working fine on my machine, but I'm running R2018a here.
Walter Roberson
on 24 May 2018
Are you using MS Windows with excel installed?
Greg
on 24 May 2018
My machine actually doesn't have Office installed and it still works.
DanRB
on 24 May 2018
Accepted Answer
More Answers (2)
Jeremy Hughes
on 24 May 2018
I tried,
T = readtable('Nuevo.xlsx')
T = readtable('Nuevo.xlsx','Basic',true)
And both worked for me. Sometimes the Excel install has issues and re-installing Excel or updated Excel may have an effect.
If Basic=true works, and Basic=false does not, that's an indication of a problem with Excel.
HTH, Jeremy
Mahboubeh Habibi
on 23 Feb 2019
0 votes
When you have a column name in your excel file that contains space or specific characters then you will get the error.
Categories
Find more on Spreadsheets in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!