Message display on basis of no error in app designer Matlab

조회 수: 14(최근 30일)
Anum Ahmed Pirkani
Anum Ahmed Pirkani 2020년 7월 20일
답변: Ayush Bansal 2020년 9월 4일
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.

채택된 답변

Ayush Bansal
Ayush Bansal 2020년 9월 4일
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).

추가 답변(0개)




Community Treasure Hunt

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

Start Hunting!

Translated by