|
| From: | Rik |
| Subject: | [Octave-bug-tracker] [bug #52542] Weird behaviour of vertical concatenation with empty char array |
| Date: | Tue, 28 Nov 2017 01:07:11 -0500 (EST) |
| User-agent: | Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0 |
Follow-up Comment #4, bug #52542 (project octave):
It is definitely the char() function call which is creating the problem. I
can use string_fill_char() to set the fill character for the char()
constructor to another value. This is then reflected in the output.
octave:2> string_fill_char ('X')
octave:3> double ([char(ones(0,4)); 'A'])
ans =
65 88 88 88
octave:4> char (ans)
ans = AXXX
Offhand, it would seem that the constructor for char() is firing regardless of
whether the dimensions indicate that it should be an empty matrix.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?52542>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
| [Prev in Thread] | Current Thread | [Next in Thread] |