From bug-octave-request at bevo dot che dot wisc dot edu Fri Jan 23 08:33:34 2004 Subject: bar.m From: "John W. Eaton" To: Stefan van der Walt Cc: bug-octave at bevo dot che dot wisc dot edu Date: Fri, 23 Jan 2004 08:32:40 -0600 On 23-Jan-2004, Stefan van der Walt wrote: | There's a (silly little) bug in bar.m -- when plotting one value only: | | octave:1> bar([100], [100]) | error: invalid vector index = 1 | error: evaluating binary operator `-' near line 82, column 29 | error: evaluating assignment expression near line 82, column 17 | error: evaluating if command near line 75, column 7 | error: evaluating if command near line 72, column 5 | error: evaluating if command near line 52, column 3 | error: called from `bar' in file `/usr/share/octave/2.1.50/m/plot/bar.m' | | Fix is below. I made this change. Thanks, 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 -------------------------------------------------------------