[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #39288] strjoin ignores trailing spaces in pre
From: |
Dan Sebald |
Subject: |
[Octave-bug-tracker] [bug #39288] strjoin ignores trailing spaces in prefixstr |
Date: |
Sat, 22 Jun 2013 16:42:39 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0 SeaMonkey/2.15 |
Follow-up Comment #3, bug #39288 (project octave):
Your examples works for me on my system:
>> strjoin ({"Octave", "Scilab", "Lush", "Yorick"}, "*")
ans = Octave*Scilab*Lush*Yorick
Are you using the latest (or at least a very recent) version of Octave? The
error message you are seeing is indicating that {"Octave", "Scilab", "Lush",
"Yorick"} is a 2x4 matrix. But I'm seeing it as a 1x4 array.
>> size ({"Octave", "Scilab", "Lush", "Yorick"})
ans =
1 4
Also, I don't see how the size of the delimiter matrix at that point in the
function could be 1x1. There is an if/elseif/else statement for which at
least one of those must happen. It's not the second case, and the other two
cases would increase the size of the delimiter cell string which it is
converted to.
All I can think of is that you might have an old Octave version that has buggy
cell string behavior.
This may have lead to uncovering a problem, though. The command strjoin ({},
"*") produces an odd result. I will note this here:
https://savannah.gnu.org/patch/?8066
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?39288>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #39288] strjoin ignores trailing spaces in prefixstr, anonymous, 2013/06/19
- [Octave-bug-tracker] [bug #39288] strjoin ignores trailing spaces in prefixstr, Dan Sebald, 2013/06/21
- [Octave-bug-tracker] [bug #39288] strjoin ignores trailing spaces in prefixstr, anonymous, 2013/06/22
- [Octave-bug-tracker] [bug #39288] strjoin ignores trailing spaces in prefixstr,
Dan Sebald <=
- [Octave-bug-tracker] [bug #39288] strjoin ignores trailing spaces in prefixstr, Ben Abbott, 2013/06/22
- [Octave-bug-tracker] [bug #39288] strjoin ignores trailing spaces in prefixstr, Dan Sebald, 2013/06/23
- [Octave-bug-tracker] [bug #39288] strjoin ignores trailing spaces in prefixstr, anonymous, 2013/06/23
- [Octave-bug-tracker] [bug #39288] strjoin ignores trailing spaces in prefixstr, Dan Sebald, 2013/06/23
- [Octave-bug-tracker] [bug #39288] strjoin ignores trailing spaces in prefixstr, Ben Abbott, 2013/06/23