[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #38423] [k:l:m] not compatible for m = -0
From: |
Michael Godfrey |
Subject: |
[Octave-bug-tracker] [bug #38423] [k:l:m] not compatible for m = -0 |
Date: |
Wed, 27 Feb 2013 03:27:29 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:19.0) Gecko/20100101 Firefox/19.0 |
URL:
<http://savannah.gnu.org/bugs/?38423>
Summary: [k:l:m] not compatible for m = -0
Project: GNU Octave
Submitted by: godfrey
Submitted on: Wed 27 Feb 2013 03:27:27 AM GMT
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: None
Assigned to: None
Originator Name: Michael Godfrey
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
Matlab gives:
>> zz=[-4:2:-0]
zz =
-4 -2 0
>> fprintf('%g \n',zz)
-4
-2
-0
>>
But Ovtave gives:
octave:74> zz = [-4:2:-0]
zz =
-4 -2 0
Note that Octave correctly handles:
octave:50> [-0:-2:-4]
ans =
-0 -2 -4
as does Matlab.
So, the sequence of the form [-n:-m:-0]
needs to be corrected.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?38423>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #38423] [k:l:m] not compatible for m = -0,
Michael Godfrey <=