Pedro Braz
Pedro Braz

Reputation: 2401

Code sections (%%) not working

I'm not new to MatLab but still I couln't find a solution and couldn't find a question about this either.

I use MatLab R2008b with windows server 2008 and sometimes when I try to divide my code in sections using %% it just doesn't work. The lines don't appear and I'm not able to run section (ctrl+ enter).

Usually a reboot or saving the file does the trick, but this time the problem is persisting.

It is worth noting that the code compiles and runs normally so that there doesn't seem to be any syntax errors or so

Any help would be appreciated ! bet it is a silly detail.

thanks !

Upvotes: 0

Views: 5540

Answers (1)

Pedro Braz
Pedro Braz

Reputation: 2401

This editor/debugger problem was actually the tip of the iceberg. The real problem was a M-Lint problem.

At the last character at the file there was a warning saying:

 M-lint caused your previous MATLAB session to terminate unexpectedly. Please send this message and file name 
 to MathWorks. See "About M-lint and Unexpected MATLAB Termination" in the MATLAB documentation for details.

So I followed the procedure found in this post in the official MathWorks forum.

Upvotes: 2

Related Questions