2
% IsGUI - Is the Matlab or Octave GUI enabled in this session?
4
% Returns 1 if GUI is enabled, 0 otherwise.
6
% Matlab's GUI is based on JAVA. Octave's GUI is based on the QT toolkit.
9
if IsOctave && exist('isguirunning', 'builtin')
10
rc = eval('isguirunning');
12
rc = psychusejava('desktop');