help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting Octave


From: Vinayak Dutt
Subject: Re: Detecting Octave
Date: Thu, 12 Oct 95 07:59:37 CDT


I do that with checking for a global variable OCTAVE_VERSION; if it
exists, I assume I am running octave, else its MATLAB.

Vinayak

# Hi,
#    I would like an .m file to detect if its running under Matlab or
# Octave. Anybody have a generic solution?
# 
# Before you start, things like
# 
# if exist(whitespace_in_literal_matrix)
# 
# don't work. I could search for .m files which exist in one and not the
# other, but that is inelegant and version dependent. Any other way? If not,
# maybe a builtin function should be included in the future?
# 
# Eyal Doron
# 
# 
# 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]