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: Garrett
Subject: [Octave-bug-tracker] [bug #35481] [var{:}] does not collapse empty elements when some elements are cell
Date: Wed, 08 Feb 2012 15:23:41 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20100101 Firefox/10.0

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

Just figuring out I didn't need to make the cell array ahead of time to show
this behavior:


octave:20> [1 [] {1} 'a']
ans = 
{
  [1,1] =  1
  [1,2] = [](0x0)
  [1,3] =  1
  [1,4] = a
}
octave:21> [1 [] 'a']
ans = a
octave:22> double(ans)
ans =

    1   97


while in Matlab:


>> [1 [] {1} 'a']

ans = 

    [1]    [1]    'a'

>> [1 [] 'a']

ans =

a


which shows the same behaviors mentioned before.

    _______________________________________________________

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]