help-octave
[Top][All Lists]
Advanced

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

Re: matlab and octave


From: Laurent Jacques
Subject: Re: matlab and octave
Date: Tue, 18 Nov 2003 16:08:09 +0100
User-agent: KMail/1.5.3

On Tuesday 18 November 2003 15:54, Andy Adler wrote:
| On Tue, 18 Nov 2003, A. S. Budden wrote:
| > I use both octave and matlab a lot -- octave on my laptop and matlab on
| > the university machines.  Is there any way of adding lines into a .m
| > file such that either matlab or octave (mainly the former) will ignore
| > the command.
|
| I typically use:
|    if exist('OCTAVE_VERSION')
|       octave_commands;
|    else
|       matlab_commands;
|    end

Definitively better than my dirty code !

Laurent.



-------------------------------------------------------------
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]