conv.m and MATLAB incompatibility.

Robert T. Short octave at phaselockedsystems.com
Sun Jun 28 11:34:07 CDT 2009


Attached is a patch to conv.m that fixes a MATLAB incompatibility.  I 
also added a couple of tests.

Summarizing:  if the input vectors are the same length, but one is a row 
vector and the other is a column vector, the octave version returns the 
correct answer but with a different orientation than MATLAB.  In other 
words octave will return a row vector when MATLAB returns a column 
vector and octave will return a column vector when MATLAB returns a row 
vector.


WARNING.  APPLYING THIS PATCH COULD CAUSE SCRIPT BREAKAGE!

Scripts that depend on the row/column nature of the result will no 
longer work.  This might be a good reason not to apply this patch.  
Folks (like me) that want MATLAB compatibility can keep this version in 
their path.

Bob

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: hg.conv
Url: https://www-old.cae.wisc.edu/pipermail/octave-maintainers/attachments/20090628/47e0fc58/attachment-0001.ksh 


More information about the Octave-maintainers mailing list