[SciPy-dev] Matlab io bug; request for advice

Nathaniel Smith njs@pobox....
Thu Feb 19 11:12:40 CST 2009


On Thu, Feb 19, 2009 at 3:18 AM, Gregor Thalhammer
<gregor.thalhammer@gmail.com> wrote:
> Therefore I am convinced that a 1d vector
> in numpy (a row vector) corresponds more naturally to a column vector in
> matlab. I see the argument that [1:12] in matlab is a row vector, but I
> think this is simply to be consistent with the direct entry of matrices
> ([1:12; 1:12] is a 2x12 matrix) and to be more economic in displaying on
> screen. In my opinion this is not sufficient to deduce what should be
> the default shape of a 1d vector in matlab.

Also, I believe matlab is inconsistent on this point anyway -- isn't
A(:) (basically ".ravel()") a column vector?

-- Nathaniel


More information about the Scipy-dev mailing list