help-octave
[Top][All Lists]
Advanced

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

Check if the environment is Octave or Matlab


From: José Luis García Pallero
Subject: Check if the environment is Octave or Matlab
Date: Fri, 10 Apr 2020 14:32:21 +0200

Hello,

Sometimes I need to check if a function or script is running in Octave
or Matlab. Usually I make the check as

if exist('OCTAVE_VERSION')
    octave = 1;
else
    octave = 0;
end

Is this the FASTEST way to check the environment or is there any other
method more suitable?

Thanks
-- 
*****************************************
José Luis García Pallero
address@hidden
(o<
/ / \
V_/_
Use Debian GNU/Linux and enjoy!
*****************************************



reply via email to

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