Reputation: 169
If I call some java function from MATLAB, can I expect, that the following MATLAB code will wait the return from java function?
Upvotes: 1
Views: 229
Reputation: 4732
It will wait for the main thread. But not for others.
Under some cases you can abuse the drawnow command to finish the other threads.
drawnow
Upvotes: 2