フィルターのクリア

How do I stop my app from closing after messages are displayed?

3 ビュー (過去 30 日間)
Mário Sousa
Mário Sousa 2022 年 1 月 6 日
回答済み: Asim 2023 年 9 月 30 日
I am in the process of developing my first MATLAB app and decided to try the application compiler.
I've now installed my app, leaving just a few disp lines without a semicolon.
When I run it, the Windows command prompt closes immediately after my messages are shown.
What do I have to code to avoid this from happening?

回答 (1 件)

Asim
Asim 2023 年 9 月 30 日
I understand that your compiled MATLAB application closes after displaying the contents whereas you want the application to stay open until you close it manually.
You can accomplish this by enclosing your code within a while loop. This loop will maintain your application in an active state until a certain condition which is defined by you is fulfilled.
I hope this suggestion helps in solving the issue you were facing.
Thanks,
Asim Asrar

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by