How do I include a command line in my app when using MATLAB Compiler?

5 ビュー (過去 30 日間)
Keegan
Keegan 2025 年 1 月 14 日
コメント済み: Keegan 2025 年 1 月 14 日
I created an app using the MATLAB App Designer and want to use MATLAB Compiler so others are able to use my app without having MATLAB. The problem I'm running into is that the app asks the user questions in the command window, and I don't know of a good method to add this command window when compiling.
I know there's an option when packaging the app to include the Windows Command Shell when the app is opened, but that shel doesn't allow you to move directories, so it makes adding files to my app more difficult than it needs to be.
Is there a way to include a "customized" command shell in the app that either allows the user to change directories, or is just located in the directory the app is saved in?

採用された回答

Steven Lord
Steven Lord 2025 年 1 月 14 日
No, you cannot include the Command Window in your deployed application. Since you mention App Designer and "change directories", perhaps using the uigetdir function will be of use to you. Depending on what you're trying to do some of the other functions listed in the Dialogs and Notifications sections on this category page in the documentation may also help you.
If you want to do something a bit more complicated, something that you would use inputdlg for if you weren't using App Designer, this documentation page shows an approach you could use to create a multiwindow app.
  1 件のコメント
Keegan
Keegan 2025 年 1 月 14 日
Thank you, this is exactly what I needed.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by