help-octave
[Top][All Lists]
Advanced

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

Re: Distinguishing Octave from Matlab


From: Ben Abbott
Subject: Re: Distinguishing Octave from Matlab
Date: Fri, 15 Feb 2008 11:29:00 -0500


On Feb 15, 2008, at 5:02 AM, David Bateman wrote:

Use Octave 3.0.0 and use the matlab syntax everywhere, in most cases it should then just work.. If there are any other differences that prevent
it working then they should be reported as bugs. A function that does
what you want is

function ret = isoctave ()
 persistent isoct
 if (isempty (isoct))
    isoct = exist('OCTAVE_VERSION') ~= 0;
 end
 ret = isoct;
end

Regards
David

Might this be added to the core functions?

Ben


reply via email to

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