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

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

[Octave-bug-tracker] [bug #35481] [var{:}] does not collapse empty eleme


From: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #35481] [var{:}] does not collapse empty elements when some elements are cell
Date: Wed, 08 Feb 2012 20:48:42 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.11) Gecko/20100701 SeaMonkey/2.0.6

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

(Sorry my comment was prematurely truncated)


octave:9> [1 [] 'a']
ans = ☺a
octave:8> int8([1 [] 'a'])
ans =

   1  97

octave:10> iscell ([1 [] 'a'])
ans = 0

..which shows that Octave makes it a char array.

Interestingly,

octave:13> iscell ([1 [] {} 'a'])
ans =  1
octave:14> [1 [] {} 'a']
ans =
{
  [1,1] =  1
  [1,2] = [](0x0)
  [1,3] = a
}

....so Octave seems to behave inconsistent - [] is treated differently from
{}.

Please check what the ML docs have to say about all this.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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