Matlab does not report errors [SOLVED]
19 ビュー (過去 30 日間)
古いコメントを表示
I have updated Matlab to the latest version 2022, but I have noticed that I no longer get any kind of error when I play 'Run' button.
For example, if I write these two random and incorrect lines in the middle of the code, it does not give me any kind of error! Performing the step-by-step analysis, the simulation rightly crashes/stops at these lines .. but it does not show me any red errors in the editor
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1171783/image.png)
2 件のコメント
James Tursa
2022 年 10 月 27 日
編集済み: James Tursa
2022 年 10 月 27 日
What kind of error did you used to get when you pressed the 'RUN' button? Is there a variable or function named fwfwf335? Dividing 3 / 0 will generate an inf result and not generate an error.
回答 (1 件)
Walter Roberson
2022 年 10 月 27 日
Neither of those is a syntax error or syntax warning, so errors and warnings in the editor would not be appropriate.
The editor could potentially detect hard-coded divisions by 0 and warn about them, but that would be yellow lines in the editor rather than red lines in the editor.
参考
カテゴリ
Help Center および File Exchange で Get Started with MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!