Why do I get an error in matlabrc.m when launching MATLAB after installing a third-party add-on in MATLAB 8.1 (R2013a)?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have just added a third-party add-on to my MATLAB installation, but I now receive the following error when I launch MATLAB:
Error: File: C:\Program Files\MATLAB\R2013a\toolbox\local\matlabrc.m Line: 196 Column: 1
At least one END is missing: the statement may begin here.
Also, when I try to execute simple commands, such as:
ver
I get an error:
Undefined function or variable 'ver'.
What is the cause of this, and how can I fix this?
Akzeptierte Antwort
MathWorks Support Team
am 3 Jul. 2013
This error is caused by an incorrect matlabrc.m file that may have been automatically modified when installing the third-party product. As indicated by the error message, there may be an END statement that is now missing.
In order to resolve this, modify matlabrc.m so that all code-branching statements (IF-ELSE or SWITCH-CASE) and loops (FOR and WHILE) have a corresponding END statement. The line number indicated in the error message should identify the beginning of the branch or loop for which the END statement is missing.
After making this correction, save "matlabrc.m" and then relaunch MATLAB. Although MATLAB should now be working correctly, please contact the author of the third-party product to determine if that product will still work correctly.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!