matlab waitfor code example
Example 1: wait time matlab
pause(1) %time delay in sec
Example 2: wait until job matlab
j = batch('myScript');
wait(j)
load(j)
submit(j);
wait(j,'finished')
results = fetchOutputs(j)
pause(1) %time delay in sec
j = batch('myScript');
wait(j)
load(j)
submit(j);
wait(j,'finished')
results = fetchOutputs(j)