MATLAB 2018b readtable error after update
20 次查看(过去 30 天)
显示 更早的评论
Have a script using
readtable
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
2 个评论
Annette Hynes
2019-2-4
I got a different error when using:
readtable('file.csv')
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.
采纳的回答
Christina Chu
2019-1-25
1 个评论
Stephan
2019-1-28
i dont rhink this is a good idea. maybe things went wrong, but in general i would recommend to update.
更多回答(2 个)
Jeremy Hughes
2019-1-24
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.
4 个评论
NICOLE MIN
2020-5-19
I had this issue, please help. ive tried all the possible solution but no avail .
Jeanine
2024-4-3,13:34
I had the "inputs must be a string array" ... etc error after updating MatLab, and this fixed readTable for me, thanks!
Ilario Gelmetti
2022-1-24
In my case it's a problem with the libraries Matlab includes, so on Arch Linux I solve like this:
Preloading libfreetype library prepending this
LD_PRELOAD=/usr/lib/libfreetype.so.6
to the terminal command I use for running Matlab.
So for R2018a the full command is:
LD_PRELOAD=/usr/lib/libfreetype.so.6 /usr/local/MATLAB/R2018a/bin/matlab
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!