[Top][All Lists]

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

Re: problem plotting "N-d object"

From: Jordi Gutiérrez Hermoso
Subject: Re: problem plotting "N-d object"
Date: Fri, 17 Feb 2012 11:59:47 -0500

On 17 February 2012 11:24, Sergei Steshenko <address@hidden> wrote:
> IMO in Octave/Matlab world the difference between line and column
> vectors is a nuisance in many many cases, and I mention vectors
> because of "transpose not defined" (specifically, "transpose") in
> the original error message.

Numpy does have true 1-dimensional vectors, but it still thinks that a
an array of dimensions [1,1,3] is 3-dimensional. You might be happier
with Numpy than Octave.

> I think Octave should automatically apply '(:)' operation whenever
> row/column trait doesn't matter.

It is difficult to predict in advance when does it matter if a vector
is row or column, so we can't do this everywhere. We do do it in
several instances, but each case requires individual consideration.

I don't think "isvector" should return "true" if there is only one
non-singleton dimension. Perhaps it should, but this would break
Matlab compatibility. You might want to make more liberal use of the
"squeeze" function if leading singleton dimensions are causing you
frequent grief.

- Jordi G. H.

reply via email to

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