[bug #55659] s_idx output of ismember uses last occurrence when there are duplicates, Matlab uses first
Andreas Bertsatos <[email protected]>
| Newsgroups | gmane.comp.gnu.octave.bugs |
|---|---|
| Message-ID | <[email protected]> |
Please use the bug tracker to post updates to a bug report. The mailing list is intended as a read-only notification stream. Info posted to this mailing list address won't appear in the tracker database where it is most useful.
Follow-up Comment #5, bug #55659 (group octave):
Can we go ahead and apply the m-file workaround so that *s_idx* returns the
first occurrence instead of the last one?
We could also introduce an 'first'/'last' extension similar to the *unique*
function to allow users to specify which index they are after.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?55659>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
(application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCacFn/AAKCRCqLAuaBUf3 Tk5YAQDkWN2DDv5YrQh4mIooSpnBC4eObxWukTWqleebsBa+ewEAjT4S0+5kE/sn f0LF7ElA+xwYTWWT9bQPerpS5rMv2AQ= =r6BD -----END PGP SIGNATURE-----