How do I include a command line in my app when using MATLAB Compiler?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Keegan
el 14 de En. de 2025
Comentada: Keegan
el 14 de En. de 2025
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?
0 comentarios
Respuesta aceptada
Steven Lord
el 14 de En. de 2025
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.
Más respuestas (0)
Ver también
Categorías
Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!