Warning Log on app designer

6 Ansichten (letzte 30 Tage)
Jonathan Moorman
Jonathan Moorman am 17 Aug. 2020
Kommentiert: Jonathan Moorman am 20 Aug. 2020
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!

Akzeptierte Antwort

Prabhanjan Mentla
Prabhanjan Mentla am 20 Aug. 2020
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.

Weitere Antworten (0)

Kategorien

Mehr zu Debugging and Analysis finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by