help-octave
[Top][All Lists]
Advanced

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

Re: Octave / Matlab


From: etienne
Subject: Re: Octave / Matlab
Date: Sun, 13 Jan 2008 19:22:25 -0800 (PST)
User-agent: SquirrelMail/1.4.13

Hi Charles,

   exist ("OCTAVE_VERSION", "builtin")

should be a fairly fool-proof test that you are running Octave rather than 
Matlab.

  Hth,

  Etienne

On Sun, January 13, 2008 13:26, Charles Stroom wrote:
# Hi,
#
# I am new to octave (and matlab) and I am trying to get an existing
# input file for matlab compatible for both matlab and octave.  This is
# somewhat complicated because, for example, in the matlab version
# originally used, the parameters of the wavwrite function are in a
# different order than in octave.
#
# Hence my question: is there a conditional which I can use to test if
# the input file is used by octave or matlab?  Something like:
#
# if (used_by_octave)
#       wavwrite(file, a, b, c);
# else
#       wavwrite(a, b, c, file);
# endif
#
# Thanks,
#
# Charles
#
#
#
#
# --
# Charles Stroom
# email: charles at no-spam.stremen.xs4all.nl (remove the "no-spam.")
# _______________________________________________
# Help-octave mailing list
# address@hidden
# https://www.cae.wisc.edu/mailman/listinfo/help-octave
#


-- 
http://www.isr.ist.utl.pt/~etienne



reply via email to

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