conv.m compatibility

schi Rolf.Schirmacher at MuellerBBM.de
Mon Apr 14 07:03:51 CDT 2008


 

John W. Eaton wrote:
> 
> On 16-Jul-2005, cctsim wrote:
> 
> | Description: 
> | conv.m is not compatible with matlab.
> | 
> | In matlab b controls whether y is a
> | column or row vector. 
> | Example (matlab):
> | >> a=ones(1,5);
> | >> b=ones(1,5);
> | >> size(conv(a,b))
> | ans =
> |      1     9
> | >> size(conv(a.',b))
> | ans =
> |      1     9
> | >> size(conv(a,b.'))
> | ans =
> |      9     1
> | 
> | In octave y is always a row vector.
> 
> Are you sure this is not a bug in Matlab?  Nearly all other polynomial
> operations return row vectors, and this feature does not seem to be
> documented.
> 
> jwe
> 
> 
> 
> -------------------------------------------------------------
> Octave is freely available under the terms of the GNU GPL.
> 
> Octave's home on the web:  http://www.octave.org
> How to fund new projects:  http://www.octave.org/funding.html
> Subscription information:  http://www.octave.org/archive.html
> -------------------------------------------------------------
> 
> 
> 

I am not sure about our current understanding whether Matlab might have a
bug or octave by not following its conventions... at least I am currently
looking through some wired code that depends on this behaviour ("feature"?)
of the other brand, and so I want to bring this issue to your attention
again: Should we adopt to Matlabs behaviour or not?

Rolf

-- 
View this message in context: http://www.nabble.com/conv.m-compatibility-tp421148p16676935.html
Sent from the Octave - Bugs mailing list archive at Nabble.com.



More information about the Bug-octave mailing list