[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Sparse functions for octave
From: |
Mike Miller |
Subject: |
Re: Sparse functions for octave |
Date: |
Fri, 26 Nov 1999 23:10:50 -0600 (CST) |
On Sat, 27 Nov 1999, A+A Adler wrote:
> Also, while putting together a test script for the sparse
> functions I use exist('__OCTAVE_VERSION__') to destinguish
> octave from Matlab. This no longer works in 2.1.19
>
> octave-2.1.19:1> __OCTAVE_VERSION__
> __OCTAVE_VERSION__ = 2.1.19
> octave-2.1.19:2> exist('__OCTAVE_VERSION__')
> ans = 0
>
> However,
> octave-2.0.14:1> __OCTAVE_VERSION__
> __OCTAVE_VERSION__ = 2.0.14
> octave-2.0.14:2> exist('__OCTAVE_VERSION__')
> ans = 1
I'm appending an earlier message on this topic. Note that, for some
reason, we were talking about using 'OCTAVE_VERSION' instead of
'__OCTAVE_VERSION__'. On my system, exist('OCTAVE_VERSION') returns '5'
(I'm running Octave 2.0.14).
Mike
--
Michael B. Miller
University of Missouri--Columbia
http://taxa.psyc.missouri.edu/~mbmiller/
--------------------------------------------------------------------------
Date: Fri, 8 Oct 1999 12:14:44 -0500 (CDT)
From: John W. Eaton <address@hidden>
To: Mike Miller <address@hidden>
Cc: Help-Octave List <address@hidden>
Subject: Re: Same script for octave/matlab
On 8-Oct-1999, Mike Miller <address@hidden> wrote:
| On Fri, 8 Oct 1999, Runar Soeraasen wrote:
|
| > I am using:
| > if exist('OCTAVE_VERSION')
|
| That's a really neat idea. One question: Will OCTAVE_VERSION exist on all
| platforms and in all future versions of Octave?
I think it is unlikely to go away, so relying on it as a way to see if
a program is being interpreted by Octave is probably OK.
jwe
-----------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.che.wisc.edu/octave/octave.html
How to fund new projects: http://www.che.wisc.edu/octave/funding.html
Subscription information: http://www.che.wisc.edu/octave/archive.html
-----------------------------------------------------------------------
- Re: Sparse functions for octave, A+A Adler, 1999/11/13
- Re: Sparse functions for octave, John W. Eaton, 1999/11/13
- Re: Sparse functions for octave, A+A Adler, 1999/11/15
- Re: Sparse functions for octave, John W. Eaton, 1999/11/15
- Re: Sparse functions for octave, A+A Adler, 1999/11/16
- Re: Sparse functions for octave, John W. Eaton, 1999/11/16
- Re: Sparse functions for octave, A+A Adler, 1999/11/26
- Re: Sparse functions for octave,
Mike Miller <=
- Re: Sparse functions for octave, John W. Eaton, 1999/11/28