title: How do I detect if I'm running MATLAB or Octave?
body: <p>I need to write code that should run equally well in Octave and on MATLAB. Problem is that it needs to do some GUI stuff, which MATLAB and Octave handle completely differently.</p>
  
  <p>Is there a way I can detect if I'm running MATLAB or Octave, in order to call the right function?</p>