Why is MATLABWindow.exe spawned when launching MATLAB in batch mode?

When starting MATLAB 2026a in batch mode
matlab.exe -wait -batch "run(some_script.m); exit"
it spawns MATLABWindow.exe.
If the script called uses the parallel toolbox, MATLAB seemingly spawns 3 MATLABWindow.exe instances per worker.
Why is this happening and, most importantly, can it be prevented?
According to the documentation starting MATLAB with the flag '-batch'
  • Starts without the desktop
  • Does not display the splash screen
Why would we need MATLABWindow.exe in this situation?

Answers (0)

Categories

Products

Release

R2026a

Asked:

about 16 hours ago

Commented:

dpb
about 15 hours ago

Community Treasure Hunt

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

Start Hunting!