Why are cells not highlighted correctly when the text in the MATLAB Editor contains a syntax error?

1 visualización (últimos 30 días)
Cells are not highlighted properly in the MATLAB Editor in cell mode if the code in the editor contains a syntax error.

Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 21 de En. de 2010
If the text contains syntax errors, the editor in MATLAB 7.6 (R2008a) is not accurately able to determine cell locations. This behavior can manifest in two ways.
1. If a file containing a syntax error is opened in the editor, no cell locations will be displayed until the syntax error is fixed.
2. If a syntax error is introduced into a file with existing cells, the existing cell locations will track insertions and deletions in the document, but new cells will not be recognized until the syntax error is fixed. Furthermore, it is possible that the document changes will invalidate the old cell locations which are being displayed.
Use the M-Lint utility to find and fix syntax errors to restore correct cell behavior.

Más respuestas (0)

Categorías

Más información sobre Environment and Settings en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2008a

Community Treasure Hunt

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

Start Hunting!

Translated by