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

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

[Octave-bug-tracker] [bug #52542] Weird behaviour of vertical concatenat


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #52542] Weird behaviour of vertical concatenation with empty char array
Date: Tue, 28 Nov 2017 00:27:35 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

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

With the space after char, it's the same as if you wrote


[char, ones(1,0); 'A']


Without looking at the actual code that builds the array, it seems to me that
it is incorrectly calculating the size of the result array (filled with
blanks, ASCII 32), then filling in elements.  It appears to be counting the
rows of the first empty array when computing the result size, but then when it
inserts the empty array, there is nothing to insert, so the 'A' ends up in the
first position and the second element is left with its initial value of SPC.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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