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

 
 

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

Submitted by:  Alois Schlögl <schloegl>
Submitted on:  Tue 10 Aug 2010 08:13:21 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Feature Request
Status: FixedAssigned to: Jaroslav Hajek <highegg>
Originator Name: Open/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 10 Aug 2010 11:15:33 AM UTC, comment #1:

Fixed by
http://hg.savannah.gnu.org/hgweb/octave/rev/92c3e8068f28

thanks for reporting.

Jaroslav Hajek <highegg>In charge of this item.
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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 10 Aug 2010 11:15:33 AM UTChigheggStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Tue 10 Aug 2010 10:07:18 AM UTChigheggAssigned toNone=>highegg

    Back to the top


    Powered by Savane 3.1-cleanup1