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

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

[Octave-bug-tracker] [bug #39288] strjoin ignores trailing spaces in pre


From: anonymous
Subject: [Octave-bug-tracker] [bug #39288] strjoin ignores trailing spaces in prefixstr
Date: Sun, 23 Jun 2013 12:46:40 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:21.0) Gecko/20100101 Firefox/21.0

Follow-up Comment #6, bug #39288 (project octave):

Dan, the size of the array is correct:


octave:1> size({"Octave", "Scilab", "Lush", "Yorick"})
ans =

   1   4


I did some debugging right before line 80:


debug> delimiter
delimiter = 
{
  [1,1] = *
  [1,2] = *
  [1,3] = *
  [1,4] = 
}
debug> cstr
cstr = 
{
  [1,1] = Octave
  [1,2] = Scilab
  [1,3] = Lush
  [1,4] = Yorick
}
debug> size(delimiter)
ans =

   1   4

debug> size(cstr)
ans =

   1   4

debug> cstr(:).'
ans = 
{
  [1,1] = Octave
  [1,2] = Scilab
  [1,3] = Lush
  [1,4] = Yorick
}
debug> delimiter(:).'
ans = 
{
  [1,1] = *
  [1,2] = *
  [1,3] = *
  [1,4] = 
}
debug> [cstr(:).'; delimiter(:).']
ans = 
{
  [1,1] = Octave
  [2,1] = *
  [1,2] = Scilab
  [2,2] = *
  [1,3] = Lush
  [2,3] = *
  [1,4] = Yorick
  [2,4] = 
}
debug> [cstr(:).'; delimiter(:).']{:}
ans = Octave
ans = *
ans = Scilab
ans = *
ans = Lush
ans = *
ans = Yorick
ans = 
debug> [[cstr(:).'; delimiter(:).']{:}]
error: horizontal dimensions mismatch (2x4 vs 1x1)


As noted in the original submission, I'm using Octave 3.6.2.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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