Hi, I use a function that not exists in MatLab and the try catch statement to check if I'm running in GNU/Octave or in MatLab. My function looks like:
%check if it runs GNU/Octave or MatLab %in: nothing
%out: 1 if I'm in GNU/Octave % 0 if I'm in MatLab function [inOctave] = in_octave() try OCTAVE_VERSION; inOctave = 1; catch inOctave = 0; end
--
***************************************** José Luis García Pallero address@hidden (o< / / \ V_/_ Use Debian GNU/Linux and enjoy! *****************************************