[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #51093] textscan with option MultipleDelimsAsO
From: |
Guillaume |
Subject: |
[Octave-bug-tracker] [bug #51093] textscan with option MultipleDelimsAsOne |
Date: |
Tue, 23 May 2017 06:39:48 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0 |
URL:
<http://savannah.gnu.org/bugs/?51093>
Summary: textscan with option MultipleDelimsAsOne
Project: GNU Octave
Submitted by: gyom
Submitted on: Tue 23 May 2017 10:39:46 AM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: Guillaume
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: GNU/Linux
_______________________________________________________
Details:
The option MultipleDelimsAsOne does not seem to work under certain
circumstances:
>>
textscan(sprintf('a\t\tb\tc'),'%s','Delimiter','\t','MultipleDelimsAsOne',false)
ans =
{
[1,1] =
{
[1,1] = a
[2,1] = b
[3,1] = c
}
}
Matlab returns {{'a';'';'b';'c'}} as expected. It works with a different
delimiter, eg:
>> textscan('a//b/c','%s','Delimiter','/','MultipleDelimsAsOne',false)
ans =
{
[1,1] =
{
[1,1] = a
[2,1] =
[3,1] = b
[4,1] = c
}
}
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51093>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #51093] textscan with option MultipleDelimsAsOne,
Guillaume <=