MATLAB: Errors without any explanations

2020aMATLAB

When I run my codes on MATLAB 2020a, I get erros without any explanations. There is just a red circle with a white exclamation mark in it and the code crashes. I have already tried Home>Environment>Code Analyzer and enabling the error messages and non of it works. I am not sharing any codes here since this happens in so many cases.

Best Answer

For anyone having the same problem, as one of the commenters indicated, this only happens in Live Scripts. Running the code as simple scipts (.m files) would return complete and specific explanation of the errors and their locations even if the error happens in a function. Moreover, running the code as a simple scipt (.m file) does not mean that the called functions will run as .m files too. Clicling on the error line would open the function file which is sometimes the .mlx file.
Live scripts are really neat and attractive and I hope I can find out why I do not get an explanation of the errors.
Related Question