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

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

[Octave-bug-tracker] [bug #52550] textscan drops delimiter character for


From: Dan Sebald
Subject: [Octave-bug-tracker] [bug #52550] textscan drops delimiter character for multi-character, cell-specified delimiter option
Date: Wed, 29 Nov 2017 12:01:34 -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 #52550 (project octave):

Something is still wrong/inconsistent here.  Note the difference between the
two modes for integer input format (as opposed to string):


octave:32> a = ",,1,2,3\n";
octave:33> textscan(a, '%d', 'delimiter', ',')
ans =
{
  [1,1] =

    0
    0
    1
    2
    3

}

octave:34> textscan(a, '%d', 'delimiter', {','})
ans =
{
  [1,1] = [](0x1)
}

octave:35> b = " , ,1,2,3\n";
octave:36> textscan(b, '%d', 'delimiter', ',')
ans =
{
  [1,1] =

    0
    0
    1
    2
    3

}

octave:37> textscan(b, '%d', 'delimiter', {','})
ans =
{
  [1,1] = [](0x1)
}

octave:38> 



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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