[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #54034] unique funciton has different syntax i
From: |
Richard |
Subject: |
[Octave-bug-tracker] [bug #54034] unique funciton has different syntax in Matlab (new options) |
Date: |
Sat, 2 Jun 2018 05:26:35 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/65.0.3325.181 Chrome/65.0.3325.181 Safari/537.36 |
URL:
<http://savannah.gnu.org/bugs/?54034>
Summary: unique funciton has different syntax in Matlab (new
options)
Project: GNU Octave
Submitted by: 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: None
Assigned to: None
Originator Name: Richard Crozier
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.4.0
Operating System: Any
_______________________________________________________
Details:
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
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?54034>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #54034] unique funciton has different syntax in Matlab (new options),
Richard <=