help-octave
[Top][All Lists]
Advanced

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

BAR not Matlab 4+ compatible


From: John Eaton
Subject: BAR not Matlab 4+ compatible
Date: Thu, 12 Oct 1995 06:20:50 -0500

Eyal Doron <address@hidden> wrote:

:   I wonder if you noticed:
:
: MATLAB 4.0:
:
: ; [X,Y]=bar(1:10,1:10);
: ; length(X)
: ans =
:     51
:
: Octave 1.1.1:
:
: octave:11> [X,Y]=bar(1:10,1:10);
: octave:12> length(X)
: ans = 31

I had no idea.

Matlab is apparently placing the points like this:

               o---o
               |   |
       o---o   |   |
       |   |   |   |
       |   |   |   |   o---o
       |   |   |   |   |   |
     o-o   o-o-o   o-o-o   X

where an `o' represents a single point and an `X' represents a
duplicate point.

This seems very odd to me and probably not worth duplicating exactly.

Of course, if someone wants to modify Octave's current version of bar()
and put it up on the contrib ftp site, they are welcome to do so.

jwe


reply via email to

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