From octave-maintainers-request at bevo dot che dot wisc dot edu Wed Nov 4 18:24:05 1998 Subject: Bugs in 2.1.9 From: "John W. Eaton" To: costabel at lie dot univ-rennes1 dot fr (Martin Costabel) cc: octave-maintainers at bevo dot che dot wisc dot edu Date: Wed, 4 Nov 1998 17:24:12 -0600 (CST) On 4-Nov-1998, Martin Costabel 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 * 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 (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 (arg.rows () >= 1 && arg.columns () >= 1);