[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Detecting Matlab or Octave
From: |
Julius Smith |
Subject: |
Detecting Matlab or Octave |
Date: |
Wed, 24 Jul 2002 22:46:28 -0700 |
Is there some way to detect, inside a function, whether that function is
running under Matlab or Octave?
A really lame method would be to test for facilities that exist in Matlab
but not Octave using the exist() function, but of course that fails when
the facilities finally appear in Octave.
Another lame but possibly more practical method is to analyze the version
variable. (This could be made to work reliably if Octave moved to negative
version numbers, an alpha prefix, etc.)
Does anyone have a good idea about this, or is there a known good method?
Thanks,
Julius <address@hidden>
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
- Detecting Matlab or Octave,
Julius Smith <=