octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #61765] matlab compatibility - issorted with c


From: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #61765] matlab compatibility - issorted with char arrays
Date: Wed, 5 Jan 2022 13:17:35 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36

Follow-up Comment #1, bug #61765 (project octave):

ok, apart from the cellstr issue, this appears to be a more general array
handling issue:  

Matlab

issorted([1 2 3; 2 3 4])
ans =
  logical
   1

issorted([1 2 3; 2 3 2])
ans =
  logical
   0


Octave:

issorted([1 2 3; 2 3 4])
error: issorted: needs a vector


I see in the matlab 6.5 (R13, 2002) release notes when issorted was added, it
states 'vectors' and only allows the option 'rows', and seems similar in
function to Octave's current version.  I see in 2017 release notes that
additional options were added. so somewhere in between it was expanded to
matrices (working on columns) and nD arrays (working on 1st non-singleton
dimension), added the DIM option, and sorting options, and later added a few
Name/Value options.

note that the help for Octave uses the word 'arrays'.  Seems until any updates
are made, we should at least fix the doc to be accurate.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?61765>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]