help-octave
[Top][All Lists]
Advanced

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

Re: matlab and octave


From: Andy Adler
Subject: Re: matlab and octave
Date: Tue, 18 Nov 2003 09:54:21 -0500 (EST)

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

There was a discussion about this on the list a while ago.
I believe this was the general consensus.

Andy



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