Warning Log on app designer

6 ビュー (過去 30 日間)
Jonathan Moorman
Jonathan Moorman 2020 年 8 月 17 日
コメント済み: Jonathan Moorman 2020 年 8 月 20 日
Hi! I am writing a program on app designer, and am trying to see if there's a way to display a warning message that shows up for a specific MATLAB error? I understand how to use the warning messages themselves, but didn't know if I could tie it to the error below. Thanks!

採用された回答

Prabhanjan Mentla
Prabhanjan Mentla 2020 年 8 月 20 日
Hi,
To get the custom warning message that shows up for a specific MATLAB error, you may use try catch statement like this:
try
%Error causing code
catch
% Error handling
End
For more information on try catch check this link.
You may add warning dialog box something like this in the catch block.
Hope this helps.
  1 件のコメント
Jonathan Moorman
Jonathan Moorman 2020 年 8 月 20 日
Works great! Thanks

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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