From bug-octave-request at bevo dot che dot wisc dot edu Tue Oct 26 16:32:41 1999 Subject: Range of linspace needlessly restricted. From: "John W. Eaton" To: Bruce Walzer Cc: bug-octave at bevo dot che dot wisc dot edu Date: Tue, 26 Oct 1999 16:31:48 -0500 (CDT) On 25-Oct-1999, Bruce Walzer wrote: | To: bug-octave at bevo dot che dot wisc dot edu | Cc: bwalzer | Subject: Range of linspace needlessly restricted. | | Bug report for Octave 2.0.14 configured for i386-pc-linux-gnu | | Description: | ----------- | | This might be a difference of opinion but I figured I'd pass it along | anyway. Here's what happens with matlab ver 5.3.0.10183 (R11). | | >> linspace(1,0,0) | | ans = | | 0 This makes no sense to me. You are asking for 0 points, but one is returned. That looks like a bug, or at least a very strange design. | >> linspace(1,1,1) | | ans = | | 1 OK, I'll go along with this. Asking for one point when both endpoints are the same makes sense. I've fixed it in the development sources. jwe --------------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. To ensure that development continues, see www.che.wisc.edu/octave/giftform.html Instructions for unsubscribing: www.che.wisc.edu/octave/archive.html ---------------------------------------------------------------------