MATLAB 2018b readtable error after update

11 vues (au cours des 30 derniers jours)
Christina Chu
Christina Chu le 24 Jan 2019
Commenté : Jeanine le 3 Avr 2024
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 commentaires
Stephan
Stephan le 24 Jan 2019
Modifié(e) : Stephan le 24 Jan 2019
i have already read about this for the last few days here - maybe another bug?
Or not the same problem?
Annette Hynes
Annette Hynes le 4 Fév 2019
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.

Connectez-vous pour commenter.

Réponse acceptée

Christina Chu
Christina Chu le 25 Jan 2019
Thanks all for the suggestions. I reinstalled MATLAB 2018b today and that fixed the problem. Going to stay away from the update button.
  1 commentaire
Stephan
Stephan le 28 Jan 2019
i dont rhink this is a good idea. maybe things went wrong, but in general i would recommend to update.

Connectez-vous pour commenter.

Plus de réponses (2)

Jeremy Hughes
Jeremy Hughes le 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.
  4 commentaires
NICOLE MIN
NICOLE MIN le 19 Mai 2020
I had this issue, please help. ive tried all the possible solution but no avail .
Jeanine
Jeanine le 3 Avr 2024
I had the "inputs must be a string array" ... etc error after updating MatLab, and this fixed readTable for me, thanks!

Connectez-vous pour commenter.


Ilario Gelmetti
Ilario Gelmetti le 24 Jan 2022
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

Catégories

En savoir plus sur Data Type Identification dans Help Center et File Exchange

Tags

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by