[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
fyi: pl_plot and whitespace_in_literal_matrix
From: |
John W. Eaton |
Subject: |
fyi: pl_plot and whitespace_in_literal_matrix |
Date: |
Fri, 8 Mar 2002 10:05:07 -0600 |
On 8-Mar-2002, Douglas Eck <address@hidden> wrote:
| For reasons I cannot remember, presumably matlab compatability, I had
| whitespace_in_literal_matrix = "traditional"
| in my .octaverc
|
| This leads to the following behavior (which I think is bizarre, but hey,
| I can turn it off --- in fact I had to explicitly turn it on!---so
| who's complaining.)
|
| ax=[1 2 3 4]
| [ax (3), ax (4)]
| ans =
| 1 2 3 4 3 1 2 3
4 4
|
Yes, because Matlab does not interpret "ax (3)" and "ax (4)" as
indexing operations, but instead as separate expressions ax, (3), ax,
and (4).
| This breaks plplot because the plplot-supplied axis.m
| does this:
|
| __pl.axis(__pl_strm,[3,4]) = [ax (3), ax (4)];
It needs to be written as
__pl.axis(__pl_strm,[3,4]) = [(ax (3)), (ax (4))];
or
__pl.axis(__pl_strm,[3,4]) = [ax(3), ax(4)];
jwe
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------