bugGNU Octave - Bugs: bug #30725, diff(logical(x)) fails, should...

 
 

bug #30725: diff(logical(x)) fails, should return diff(double(logical(x)))

Submitter:  Alois Schlögl <schloegl>
Submitted:  Tue 10 Aug 2010 08:13:21 AM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Feature Request
Status:  Fixed Assigned to:  highegg
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 10 Aug 2010 11:15:33 AM UTC, comment #1: 
Jaroslav Hajek <highegg>
Tue 10 Aug 2010 08:13:21 AM UTC, original submission:  

diff(logical(..)) fails

octave:1> x=1:5;y=diff(x==3),class(y) 
error: diff: X must be numeric

matlab provides this result:

>> x=1:5;y=diff(x==3),class(y) 

y =
     0     1    -1     0
ans =
double


Alois

Alois Schlögl <schloegl>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by highegg (Updated the item)
  • -email is unavailable- added by schloegl (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-08-10 highegg StatusNone Fixed
        Open/ClosedOpen Closed
    2010-08-10 highegg Assigned toNone highegg

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code