bugGNU Octave - Bugs: bug #54034, unique function needs...

 
 

bug #54034: unique function needs "stable" setOrder argument for Matlab compatibility

Submitted by:  Richard <crobar>
Submitted on:  Sat 02 Jun 2018 09:26:33 AM UTC  
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Confirmed Assigned to:  None
Originator Name:  Richard Crozier Open/Closed:  Open
Release:  dev Operating System:  Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Sat 02 Jun 2018 09:26:33 AM UTC, original submission:

In Matlab the unique function now has a different syntax from Octave. Here is the Matlab syntax:

C = unique(A)
C = unique(A,setOrder)
C = unique(A,occurrence)
C = unique(A,___,'rows')
C = unique(A,'rows',___)
[C,ia,ic] = unique(_)
[C,ia,ic] = unique(A,'legacy')
[C,ia,ic] = unique(A,'rows','legacy')
[C,ia,ic] = unique(A,occurrence,'legacy')
[C,ia,ic] = unique(A,'rows',occurrence,'legacy')

setOrder can be 'stable' to preserve the order or 'sorted' (the default.

occurance is 'first' or 'last' (already supported in Octave).

see:

https://uk.mathworks.com/help/matlab/ref/unique.html

Richard <crobar>

 

(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 rik5 (Updated the item)
  • -email is unavailable- added by crobar (Submitted the item)
  • -email is unavailable- added by crobar
  •  

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

    Only project members can vote.

     

     

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-06-13 rik5 Summaryunique funciton needs "stable" setOrder argument for Matlab compatibility => unique function needs "stable" setOrder argument for Matlab compatibility
    2018-06-13 rik5 StatusNone => Confirmed
        Release4.4.0 => dev
        Summaryunique funciton has different syntax in Matlab (new options) => unique funciton needs "stable" setOrder argument for Matlab compatibility
    2018-06-02 crobar Carbon-Copy- => Added -email is unavailable-

    Back to the top


    Powered by Savane 3.3