error described on the command window does not appear on code analyzer

1 回表示 (過去 30 日間)
Matlab learner
Matlab learner 2023 年 1 月 27 日
コメント済み: Matlab learner 2023 年 1 月 30 日
It seems an error occurred in line 6, but not pointing out what that specific error is.
When I tried to check the error more detailed in the code analyzer, I could not see any error warning bars showing.
How could I make the error bars appear? I've already done the "MATLAB > Code Analyzer, and then select the Enable integrated warning and error messages check box. Set the Underlining option to Underline warnings and errors" process.

回答 (1 件)

Jan
Jan 2023 年 1 月 30 日
編集済み: Steven Lord 2023 年 1 月 30 日
The code analyzer shows typing errors and other static problems.
The error message you get is a run-time problem, which occurs dynamically during the code is executed. Of course this is not displayed in the Code Analyzer messages.
"How could I make the error bars appear?" - You can't.
[SL: fix typo]

カテゴリ

Help Center および File ExchangeDebugging and Analysis についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by