MATLAB Answers


MATLAB 2018b readtable error after update

Asked by Christina Chu on 24 Jan 2019
Latest activity Edited by jonathan preussner on 30 May 2019
Have a script using
to read from a .csv file.
Worked fine before a MATLAB update but now no matter how I use readtable, I get this error:
Error using readtable (line 216)
An error occurred while trying to determine whether "readData" is a function name.
How can I fix this? Thanks


i have already read about this for the last few days here - maybe another bug?
Or not the same problem?
I got a different error when using:
Error using readtable (line 216)
Delimiter must be a string array, character vector, or cell array of character vectors.
Note: readtable detected the following parameters:
'Delimiter', ',', 'HeaderLines', , 'ReadVariableNames', true, 'Format', ''
I also uninstalled and reinstalled R2018b, and 'readtable' seems to be working now.

Sign in to comment.





2 Answers

Answer by Christina Chu on 25 Jan 2019
 Accepted Answer

Thanks all for the suggestions. I reinstalled MATLAB 2018b today and that fixed the problem. Going to stay away from the update button.

  1 Comment

i dont rhink this is a good idea. maybe things went wrong, but in general i would recommend to update.

Sign in to comment.

Answer by Jeremy Hughes on 24 Jan 2019

This is an installation issue. Although this might not resolve the issue try
>> restoredefaultpath
>> rehash toolboxcache
You can check
>> which readData -all
The correct version for readtable is ...matlab/toolbox/shared/io/+matlab/+io/+internal/+text/TableParser.m
If there's something else, then try temporarily renaming the others or removing their folders from the path.
If this still doesn't work you might need help from tech support.


Thanks for the suggestion. Sadly it didn't work.
I had a readtable error involving " too many arguments" and this worked for me

Sign in to comment.