Superclass contains a parse error

16 次查看(过去 30 天)
LeChat
LeChat 2022-8-18
回答: Abhijeet 2023-9-5
Hi,
For one month now, I have been having the following error when launching a code (any code containing "readtable" command) right after booting up Matlab.
The workaround I found is to do
restoredefaultpath
and then reset my own path again.
I cannot find the conflicting function in my path, is there a way to find it, or any remnant solution?
Thank you for your help
LeChat
PS: as I work on several computer (from my desktop in the lab, from home, my laptop etc.), I have saved my path on Dropbox and then I have added it in the path. Matlab on Windows seems to save my personal path, but on Linux Ubuntu (21.04LTS), it seems I need to set my path each time I launch Matlab. Would this be related to my initial question? Would there be a way to save my path once for good on Linux? Thank you!
  2 个评论
Jeffrey Clark
Jeffrey Clark 2022-8-18
@LeChat, file paths use a different convention on linux vs windows. See answer to Program made for matlab on windows doesn't work on linux. Path problem as to how to address this to make it work.
LeChat
LeChat 2022-8-18
编辑:LeChat 2022-8-18
I have been doing this for a while (sharing code between Mac, Linux, and Windows, using "pathsep" command to genericly write the paths of my files in scripts) and never had this issue of parse error so far... I wonder if the issue is not causes by the fact that I also installed R2022a on Windows and came back to R2021b because of the fitting tool cftool that has changed (they removed the manual selection of data exclusion in the fit, which was quite handy I must say).

请先登录,再进行评论。

回答(1 个)

Abhijeet
Abhijeet 2023-9-5
Hi
I understand that you are getting “Superclass contains a parse” message. In order to resolve the issue, I suggest following troubleshooting steps:
  • Manually go through the MATLAB search path and remove the paths which have functions conflicting with built-in MATLAB functions. Execute the following command to get the list of the current search path.
>> path
The following command may help to find the source of the issue:
>> which -all <conflicting_function>
I hope this helps you

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by