Create an application on Matlab

Hi, I'm working in image processing with Matlab and I want to create a .exe or an application from my .m code.
I tried using Matlab compiler, and creating a standalone application, but all the messages i ask for on screen to request information are not shown in the .exe file.
Is there any other way to make these messages display on screen?.
Thank you.

4 comentarios

Rik
Rik el 18 de Jun. de 2021
Are you using the input function to ask your user for input? You might want to consider removing all interactions with the command window with GUI elements.
Guillermo Arias
Guillermo Arias el 18 de Jun. de 2021
Hi, yes, I'm using input function to ask for data. For example:
e=input('Enter the thickness of the test piece: ')
When I run the code in Matlab the message is displayed but when I create the standalone application that message is not displayed.
Rik
Rik el 18 de Jun. de 2021
Where would you expect that to be displayed? Do you expect a command line interface to open up alongside your GUI? Why not use an input field and a button?
For general advice and examples for how to create a GUI (and avoid using GUIDE), have look at this thread.
Guillermo Arias
Guillermo Arias el 19 de Jun. de 2021
Okey thank you very much, what I expected is that the .exe program would display the message in the same moment that the .m file. I think I'm going to try to create a GUI, thanks again.

Iniciar sesión para comentar.

Respuestas (0)

Productos

Versión

R2020b

Preguntada:

el 18 de Jun. de 2021

Comentada:

el 19 de Jun. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by