Cannot run any script or function in MATLAB when a file with a given name is in the startup directory
2 views (last 30 days)
Show older comments
Hi,
I am running MATLAB R2014a on Ubuntu 12.04 LTS, and the issue I describe below started after I installed Ubuntu's most recent updates.
When I have a function called angle2dcm.m (from Aerospace Toolbox, which I don't have installed) in my startup directory, MATLAB can't run any file on that directory. Even startup.m does not run on startup. I get the following message:
Warning: Executing startup failed in matlabrc. This indicates a potentially serious problem in your MATLAB setup, which should be resolved as soon as possible. Error detected was: MATLAB:UndefinedFunction Undefined function or variable 'startup'. > In matlabrc at 192
I get 'Undefined function or variable < filename >.' whenever I run anything inside the directory.
However, when I delete angle2dcm.m, everything runs perfectly.
Since I can make it work, this is not a critical issue. Nevertheless I'd really like to know what can be causing this.
Thanks
1 Comment
Harit Pandya
on 19 Nov 2016
Thank you for the post. I had been struggling with the same error since couple of hours.
Answers (0)
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!