Question

I'm not entirely sure how, but my copy of MATLAB R2013b has stopped showing which line my errors occur at.

I'll just get errors like:

Subscripted assignment dimension mismatch.

But no line number to go along with it, so I have no idea which part of my code is causing the problem!

Did I mess up a setting somewhere?

Était-ce utile?

La solution

Enable line numbering in the editor with Preferences -> Editor/Debugger -> Display -> Show line numbers

When running code segments (for example, using Ctrl+Enter with the Windows default key bindings), line numbers will not be displayed. You can see the line on which the error is caused by directly running the script or calling the function in which it occurs.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top