From help-octave-request at bevo dot che dot wisc dot edu Thu Oct 12 07:59:43 1995 Subject: Re: Detecting Octave From: vdp at us0 dot mayo dot EDU (Vinayak Dutt) To: doron at goofy dot mpi-hd dot mpg dot de Cc: help-octave at bevo dot che dot wisc dot edu 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 # # #