Warning Log on app designer

6 vues (au cours des 30 derniers jours)
Jonathan Moorman
Jonathan Moorman le 17 Août 2020
Commenté : Jonathan Moorman le 20 Août 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!

Réponse acceptée

Prabhanjan Mentla
Prabhanjan Mentla le 20 Août 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.
  1 commentaire
Jonathan Moorman
Jonathan Moorman le 20 Août 2020
Works great! Thanks

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Debugging and Analysis dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by