~ubuntu-branches/ubuntu/trusty/psychtoolbox-3/trusty-proposed

« back to all changes in this revision

Viewing changes to Psychtoolbox/PsychOneliners/IsGUI.m

  • Committer: Package Import Robot
  • Author(s): Yaroslav Halchenko
  • Date: 2013-11-19 23:34:50 UTC
  • mfrom: (3.1.4 experimental)
  • Revision ID: package-import@ubuntu.com-20131119233450-f7nf92vb8qavjmk8
Tags: 3.0.11.20131017.dfsg1-3
Upload to unsable since fresh glew has arrived to sid!

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
function rc = IsGUI
 
2
% IsGUI - Is the Matlab or Octave GUI enabled in this session?
 
3
%
 
4
% Returns 1 if GUI is enabled, 0 otherwise.
 
5
%
 
6
% Matlab's GUI is based on JAVA. Octave's GUI is based on the QT toolkit.
 
7
%
 
8
 
 
9
if IsOctave && exist('isguirunning', 'builtin')
 
10
    rc = eval('isguirunning');
 
11
else
 
12
    rc = psychusejava('desktop');
 
13
end
 
14
 
 
15
return;