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

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

[Octave-bug-tracker] [bug #44659] stem does not accept logical inputs


From: Rik
Subject: [Octave-bug-tracker] [bug #44659] stem does not accept logical inputs
Date: Mon, 30 Mar 2015 01:34:19 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:36.0) Gecko/20100101 Firefox/36.0

Follow-up Comment #3, bug #44659 (project octave):

Actually, a more interesting test would be if Matlab accepts char values.


stem (1:3, ['A', 'B', 'C'])


If they do, then Octave can just use isreal() to validate inputs.  Otherwise,
one has to use a combination such as:


isreal (X) && ! ischar (X)
or
isnumeric (X) || islogical (X)




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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