In a script, how to known if Matlab is running in Interactive (trough emacs) or in Batch? -


in matlab script discriminate case script run in interactive trough emacs matlab mode or in batch.

by running in batch mean running explained on matlab website here http://www.mathworks.com/support/solutions/en/data/1-15hng.

for example trough variable doing think this:

if (script_running_in_batch==1)   do_this; end 

is there way doing this?

i use following:

function retval = iscommandwindowopen()     jdesktop = com.mathworks.mde.desk.mldesktop.getinstance;     retval = ~isempty(jdesktop.getclient('command window')); end 

as mentioned earlier, copy here


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -