Message display on basis of no error in app designer Matlab

2 vues (au cours des 30 derniers jours)
Anum Ahmed Pirkani
Anum Ahmed Pirkani le 20 Juil 2020
Hello,
I am developing an app using the Matlab's app designer tool.
I have various panels in my code. For each panel, I have put a call back at the last user input.
After each panel runs successfully, I want to display a message of "No Errors". Upon receiving error in any panel, in the progress panel (which I have created seperately), I want to display a message "Unsuccessful".
How can I do this in the app designer?
I am sing Matlab 2020 version.
Regards
Anum

Réponse acceptée

Ayush Bansal
Ayush Bansal le 4 Sep 2020
Use Try/catch to catch the errors and uialert to display error message in the app. Use app.UIFigure (default figure of app) as an argument instead of fig in uialert(fig,message,title).

Plus de réponses (0)

Catégories

En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange

Produits


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by