User`s guide
wait
11-301
Note Simulink models cannot run while a MATLAB session is blocked by wait. If you
must run Simulink from the MATLAB client while also running jobs, you cannot use
wait.
Examples
Submit a job to the queue, and wait for it to finish running before retrieving its results.
submit(j);
wait(j,'finished')
results = fetchOutputs(j)
Submit a batch job and wait for it to finish before retrieving its variables.
j = batch('myScript');
wait(j)
load(j)
See Also
pause | resume | wait (GPUDevice) | wait (FevalFuture)