help-octave
[Top][All Lists]
Advanced

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

Re: BAR not Matlab 4+ compatible


From: Ted Harding
Subject: Re: BAR not Matlab 4+ compatible
Date: Thu, 12 Oct 1995 14:19:07 +0200 (BST)

> 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.

This is not how Matlab USED to do it (see bar.m from MatLab, vintage 1988,
below). This would draw the following graph (where "+" marks a data
point):

           o-+-o
           |   |
       o-+-o   |
       |   |   |
       |   |   o-+-o
       |   |   |   |
       o   o   o   o

It basically follows the principle of octave's "bar".

I, too, think that this is how I like to see "bar"s, because I really
use histograms and have little use for the spreadsheet kind (in fact the
Matlab [1988] "hist" function uses "bar" to draw the histogram). However,
there is a place for the bar-chart as such (like the one drawn by John
Eaton); but to be fully useful this needs an additional parameter to
control the "mark-space" ratio (i.e. what proportion of the distance
between index marks is occupied by the width of the bar, relative to the
proportion occupied by the space between the bars).

Ted.                                    (address@hidden)

From address@hidden  Thu Oct 12 09:29:24 1995
Received: (from address@hidden) by bevo.che.wisc.edu (8.6.12/8.6.12) id 
JAA05027 for help-octave-outgoing; Thu, 12 Oct 1995 09:29:24 -0500
Received: from localhost (localhost [127.0.0.1]) by bevo.che.wisc.edu 
(8.6.12/8.6.12) with SMTP id JAA01257 for address@hidden; Thu, 12 Oct 1995 
09:29:23 -0500
Message-Id: <address@hidden>
To: address@hidden (Octave mailing list)
Subject: Re: Detecting Octave 
In-reply-to: Your message of Thu, 12 Oct 95 11:04:55 BST
Date: Thu, 12 Oct 95 09:29:23 -0500
From: "John C. Campbell" <address@hidden>
X-Mts: smtp
Sender: address@hidden

Eyal Doron <address@hidden> wrote:

| Hi,
|    I would like an .m file to detect if its running under Matlab or
| Octave. Anybody have a generic solution?
| 
| Before you start, things like
| 
| if exist(whitespace_in_literal_matrix)

I put the following in my .octaverc

if exist('whitespace_in_literal_matrix')

reply via email to

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