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

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

[Octave-bug-tracker] [bug #48092] ind2sub accepts a matrix as arg, which


From: Marco Caliari
Subject: [Octave-bug-tracker] [bug #48092] ind2sub accepts a matrix as arg, which is undocumented
Date: Fri, 1 Jul 2016 09:48:28 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0

Follow-up Comment #2, bug #48092 (project octave):

I think Francesco means something like


[r, c] = ind2sub ([3, 3], [5, 6; 7, 8])


It is quite standard that Octave accepts matrices as input, even if not
clearly stated. But, while testings, I found that Matlab behaves differently
when 0 or 1 output arguments are given


>> r = ind2sub ([3, 3], [5, 6; 7, 8])
r =

     5     6
     7     8


that is, IND is returned unchanged.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?48092>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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