[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/
- [Octave-bug-tracker] [bug #52542] Weird behaviour of vertical concatenation with empty char array, Luis Mendo, 2017/11/27
- [Octave-bug-tracker] [bug #52542] Weird behaviour of vertical concatenation with empty char array, Rik, 2017/11/27
- [Octave-bug-tracker] [bug #52542] Weird behaviour of vertical concatenation with empty char array,
John W. Eaton <=
- [Octave-bug-tracker] [bug #52542] Weird behaviour of vertical concatenation with empty char array, Rik, 2017/11/28
- [Octave-bug-tracker] [bug #52542] Weird behaviour of vertical concatenation with empty char array, Rik, 2017/11/28
- [Octave-bug-tracker] [bug #52542] Weird behaviour of vertical concatenation with empty char array, Rik, 2017/11/28
- [Octave-bug-tracker] [bug #52542] Weird behaviour of vertical concatenation with empty char array, Rik, 2017/11/28
- [Octave-bug-tracker] [bug #52542] Weird behaviour of vertical concatenation with empty char array, Rik, 2017/11/28