How to suppress opening of command window?

4 visualizaciones (últimos 30 días)
s lahiri
s lahiri el 28 de Feb. de 2021
Respondida: dpb el 28 de Feb. de 2021
I am opening the matlab application from vba by following vba code
Public Sub StartExeWithArgument()
Application.ScreenUpdating = False
fileToRun = "C:\Users\Sandip\Desktop\exe project\mainfile"
matlabCommand = "matlab -nosplash -nodesktop -r "" run('" & fileToRun & "');warning off;exit;"" "
Shell (matlabCommand)
Application.ScreenUpdating = True
End Sub
Program is running fine, but the command windown is popping up everytime I run the program.
How to suppress opening of command window?

Respuestas (1)

dpb
dpb el 28 de Feb. de 2021
Use the -batch option
See <matlabwindows> for all startup options (windows, there are other links for other OS)

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by