[Top][All Lists]

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

Re: Octave / Matlab

From: Ben Abbott
Subject: Re: Octave / Matlab
Date: Sun, 13 Jan 2008 16:57:19 -0500

On Jan 13, 2008, at 4:26 PM, Charles Stroom wrote:


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);
wavwrite(a, b, c, file);



Charles Stroom

What version of Octave are you running?

On 3.0.0+, when I type "help wavwrite" I get

octave:1> help wavwrite
 -- Function File:  wavwrite (Y, FILENAME)
 -- Function File:  wavwrite (Y, FS, FILENAME)
 -- Function File:  wavwrite (Y, FS, BITS, FILENAME)
     Write Y to the canonical RIFF/WAVE sound file FILENAME with sample
     rate FS and bits per sample BITS.  The default sample rate is 8000
     Hz with 16-bits per sample.  Each column of the data represents a
     separate channel.

     See also: wavread.



reply via email to

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