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
Post a Comment