How to suppress opening of command window?

4 visualizzazioni (ultimi 30 giorni)
s lahiri
s lahiri il 28 Feb 2021
Risposto: dpb il 28 Feb 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?

Risposte (1)

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

Categorie

Scopri di più su Startup and Shutdown in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by