[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
conv does not preverve orientation of input
From: |
John W. Eaton |
Subject: |
conv does not preverve orientation of input |
Date: |
Fri, 28 Mar 2008 15:52:25 -0400 |
On 28-Mar-2008, Moritz Borgmann wrote:
| In Octave, the orientation of the output of y = conv(a,b) is always a
| row vector. In Matlab, the rules are the following:
|
| - if a is shorter or equal in size to b: orientation of y is the same as b
| - if b is shorter than a: orientation of y is same as a.
|
| Wuut. You may or may not believe it, but there's code that depends on
| this behavior.
Why would this be desirable?
| Find attached a patch that "fixes" conv.m.
|
| Test cases are included.
I'd like to hear from others before making this change.
jwe