Octave / Matlab
Ben Abbott
bpabbott at mac.com
Sun Jan 13 15:57:19 CST 2008
On Jan 13, 2008, at 4:26 PM, 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
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.
/sw/share/octave/3.0.0+/m/audio/wavwrite.m
Ben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.cae.wisc.edu/pipermail/help-octave/attachments/20080113/f5971979/attachment.html
More information about the Help-octave
mailing list