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

1 次查看(过去 30 天)

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Environment and Settings 的更多信息

标签

产品


版本

R2008a

Community Treasure Hunt

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

Start Hunting!

Translated by