フィルターのクリア

Message display on basis of no error in app designer Matlab

7 ビュー (過去 30 日間)
Anum Ahmed Pirkani
Anum Ahmed Pirkani 2020 年 7 月 20 日
回答済み: Ayush Bansal 2020 年 9 月 4 日
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

採用された回答

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 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by