[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bugs in 2.1.9
From: |
John W. Eaton |
Subject: |
Bugs in 2.1.9 |
Date: |
Wed, 4 Nov 1998 17:24:12 -0600 (CST) |
On 4-Nov-1998, Martin Costabel <address@hidden> wrote:
| 1) Empty plots:
| >> x=0:0.01:7; y=sin(x); plot(x,y)
| gives only an empty window.
| >> plot(0:0.01:7, sin(0:0.01:7))
| does nothing, but
| >> plot(sin(0:0.01:7))
| works correctly
Please try the following patch.
Thanks,
jwe
Wed Nov 4 17:21:41 1998 John W. Eaton <address@hidden>
* data.cc (Fis_matrix): Also return true if the arg is a range.
Index: data.cc
===================================================================
RCS file: /home/jwe/src/master/octave/src/data.cc,v
retrieving revision 1.60
diff -c -r1.60 data.cc
*** data.cc 1998/11/03 20:48:57 1.60
--- data.cc 1998/11/04 23:21:37
***************
*** 836,842 ****
{
octave_value arg = args(0);
! if (arg.is_scalar_type ())
retval = 1.0;
else if (arg.is_matrix_type ())
retval = static_cast<double> (arg.rows () >= 1 && arg.columns () >= 1);
--- 836,842 ----
{
octave_value arg = args(0);
! if (arg.is_scalar_type () || arg.is_range ())
retval = 1.0;
else if (arg.is_matrix_type ())
retval = static_cast<double> (arg.rows () >= 1 && arg.columns () >= 1);
- Bugs in 2.1.9,
John W. Eaton <=