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

3 次查看(过去 30 天)
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?

采纳的回答

MathWorks Support Team
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 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB Compiler 的更多信息

标签

尚未输入任何标签。

产品


版本

R2013a

Community Treasure Hunt

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

Start Hunting!

Translated by