norman's blog

Notes of an amnesiac.
Never stop thinking.
Find an aesthetic description.

Wednesday, March 18, 2009

MATLAB ERRORS

[Fatal Error] :-1:-1: Premature end of file on startup
This error occurs when the MATLAB preferences or the path becomes corrupt in MATLAB. To resolve this issue you can clear the MATLAB preferences and reset the path. To do so, run the following steps:
1) Clear the MATLAB preferences so that they can be generated correctly:
To clear the preferences, you will need to get into your Application Data folder($HOME/.matlab for LINUX).
Once in the Application Data folder, rename R2008a to R2008a_old. Once renamed, try restarting MATLAB. This will cause a new set of preferences to be recreated on the next MATLAB execution. If the error returns, you can try resetting MATLAB's path using the instructions below.
2) Generate a new pathdef.m file for MATLAB:
If the error reoccurs, the pathdef.m file that stores MATLAB's paths may be corrupt. To resolve this issue, run the following commands in MATLAB to reset the path:
restoredefaultpath
savepath
rehash toolboxcache
Once complete, restart MATLAB to enable the changes.

Labels:

1 Comments:

Blogger Unknown said...

Thanks, this really resolved a problem we had never experienced before.

September 25, 2009 at 12:29 PM  

Post a Comment

Subscribe to Post Comments [Atom]

<< Home