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?

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top