[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Distinguishing Octave from Matlab
From: |
José Luis García Pallero |
Subject: |
Re: Distinguishing Octave from Matlab |
Date: |
Thu, 19 Feb 2009 18:44:55 +0100 |
I usually use a function like this:
function [inOctave] = in_octave()
try
OCTAVE_VERSION;
inOctave = 1;
catch
inOctave = 0;
end
What is the difference with the persistent inout = exist("OCTAVE_VERSION","builtin") != 0; version?
Is the evaluation of exist() function faster than OCTAVE_VERSION and try-catch statement?
--
*****************************************
José Luis García Pallero
address@hidden
(o<
/ / \
V_/_
Use Debian GNU/Linux and enjoy!
*****************************************