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

Stephan
Stephan 2019년 1월 24일
편집: Stephan 2019년 1월 24일
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:
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
Christina Chu 2019년 1월 25일

0 개 추천

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

댓글 수: 1

Stephan
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
Jeremy Hughes 2019년 1월 24일

4 개 추천

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

Christina Chu
Christina Chu 2019년 1월 25일
Thanks for the suggestion. Sadly it didn't work.
jonathan preussner
jonathan preussner 2019년 5월 30일
편집: jonathan preussner 2019년 5월 30일
I had a readtable error involving " too many arguments" and this worked for me
NICOLE MIN
NICOLE MIN 2020년 5월 19일
I had this issue, please help. ive tried all the possible solution but no avail .
Jeanine
Jeanine 2024년 4월 3일
I had the "inputs must be a string array" ... etc error after updating MatLab, and this fixed readTable for me, thanks!

댓글을 달려면 로그인하십시오.

Ilario Gelmetti
Ilario Gelmetti 2022년 1월 24일

0 개 추천

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

카테고리

도움말 센터File Exchange에서 Data Type Identification에 대해 자세히 알아보기

제품

릴리스

R2018b

태그

질문:

2019년 1월 24일

댓글:

2024년 4월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by