help-octave
[Top][All Lists]
Advanced

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

Re: wavwrite


From: Søren Hauberg
Subject: Re: wavwrite
Date: Tue, 09 Oct 2007 09:57:48 +0200
User-agent: Thunderbird 1.5.0.13 (X11/20070824)

Schirmacher, Rolf skrev:
I just found some incompatibility in between octave an matlab for wavwrite.

Octave wants to get the filename first, Matlab last. So we have wavwrite(filename, signal, fs, bits) in Octave and
wavwrite(signal, fs, bits, filename) in Matlab.

Changing it would be straight forward (as far as I see...), but it would
break existing Octave code :-(

So, how to proceed?
We had the same issue with 'imwrite' I believe. The solution is simply to check the type of the input arguments. If the first argument is a string we'll use the current Octave style, but if the last is a string we'll use the Matlab style. It should be a fairly easy change.

Could I persuade you to send a patch?

Søren


reply via email to

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