Determine whether MATLAB was launched from OS GUI or as a Parallel Toolbox thread -


In a similar style, there is a way to determine whether a given MATLAB example was started by the user. Or not created by parallel toolbox scheduler?

Warning: untested code

looks like That this can do the trick:

  If the% getCurrentWorker works% then the work is launched as a worker% then the GUI starts at the end of the session. / Code>  

Here is the reference:

Comments