Lex
Lex

Reputation: 169

Calling Java code from MATLAB, synchronizing

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

Answers (1)

bdecaf
bdecaf

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.

Upvotes: 2

Related Questions