Message display on basis of no error in app designer Matlab

4 views (last 30 days)
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

Accepted Answer

Ayush Bansal
Ayush Bansal on 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).

More Answers (0)

Categories

Find more on Develop Apps Using App Designer in Help Center and File Exchange

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!