Message display on basis of no error in app designer Matlab

4 visualizaciones (últimos 30 días)
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

Respuesta aceptada

Ayush Bansal
Ayush Bansal el 4 de Sept. de 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).

Más respuestas (0)

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by