필터 지우기
필터 지우기

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
MathWorks Support Team 2013년 7월 3일
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