Why do I sometimes get the error "Reference to non-existent field 'matlab'." when I try to open or edit a .m file?
3 次查看(过去 30 天)
显示 更早的评论
This does not always happen, but when it does I can't seem to open any .m files for editing. Clicking on files in the current folder directory also gives the same error in a pop-up. I am running R2017b on a ubuntu 16.04 LTS.
0 个评论
回答(1 个)
Sruthi Geetha
2018-1-25
dbstop if all error
Then generate the error and see where it's being called.
E = lasterror
reveals the location, which function throws the error.
Does the error appear, if you exclude all user-defined functions from the PATH? If not, one of your functions shadows a function, which is called during saving. Also, try deleting/renaming your preferences directory.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Search Path 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!