Borrar filtros
Borrar filtros

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 visualizaciones (últimos 30 días)
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?

Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 3 de Jul. de 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.

Más respuestas (0)

Categorías

Más información sobre Get Started with MATLAB Compiler en Help Center y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Productos


Versión

R2013a

Community Treasure Hunt

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

Start Hunting!

Translated by