help-octave
[Top][All Lists]
Advanced

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

Re: test if octave is running


From: Paul Kienzle
Subject: Re: test if octave is running
Date: Mon, 28 May 2001 17:04:55 +0100
User-agent: Mutt/1.2.5i

if exist("OCTAVE_VERSION")==5, "octave", else "matlab", end

The alternative is to put the specific stuff in two separate scripts
on different paths, and in .octaverc add the octave script path but
in .matlabrc (or whatever they use) add the matlab script path.

Paul Kienzle
address@hidden

On Mon, May 28, 2001 at 03:32:34PM +0200, Jan-Mark Batke wrote:
> Hi all,
> 
> is it possible to test if octave is running? E.g.
> 
> if __octave_is_running__
>    do octave_stuff;
> else
>    do matlab_stuff;
> end
> 
> I didn't found something apropriate in the infos files. :(
> 
> Regards
> 
> Jan-Mark
> 
> -- 
> .- Dipl.-Ing. Jan-Mark Batke -- TU Berlin·Secretary FT 5-1 .
>  Phone: ++49 30 314-2 45 78     Fachgebiet Fernmeldetechnik     
>  Fax:   ++49 30 314-2 25 14     (Telecommunications Group)      
>  http://www-ft.ee.tu-berlin.de/~batke ------.¸.·¸.·´¯`·.¸.·.
>  
>                                         
> 
> 
> 
> -------------------------------------------------------------
> Octave is freely available under the terms of the GNU GPL.
> 
> Octave's home on the web:  http://www.octave.org
> How to fund new projects:  http://www.octave.org/funding.html
> Subscription information:  http://www.octave.org/archive.html
> -------------------------------------------------------------
> 
> 



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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