Clear Filters
Clear Filters

Why do I get an error in matlabrc.m when launching MATLAB after installing a third-party add-on in MATLAB 8.1 (R2013a)?

1 view (last 30 days)
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?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 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.

More Answers (0)

Categories

Find more on Get Started with MATLAB Compiler in Help Center and File Exchange

Tags

No tags entered yet.

Products


Release

R2013a

Community Treasure Hunt

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

Start Hunting!