[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #53685] textscan() with Delimiter specified al
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #53685] textscan() with Delimiter specified always treats multiple delimiters as one |
Date: |
Tue, 17 Apr 2018 22:46:50 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36 |
URL:
<http://savannah.gnu.org/bugs/?53685>
Summary: textscan() with Delimiter specified always treats
multiple delimiters as one
Project: GNU Octave
Submitted by: None
Submitted on: Wed 18 Apr 2018 02:46:48 AM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: frankd
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: 4.2.2
Operating System: Microsoft Windows
_______________________________________________________
Details:
I have a data file that contains comma separated fields of known types. The
file is from an external device, so I can't change the format.
* Some numeric fields may _sometimes_ be null, nothing between two adjacent
commas
* The text fields may include spaces, and are not quoted
Using textscan() to read the file with %f and %s:
* Without using the Delimiter option, the null numeric fields correctly appear
as NaN, but the spaces in the string fields act as delimiters, creating extra
fields.
* Using the Delimiter option, the null numeric fields disappear, shifting all
subsequent fields
* The MultipleDelimsAsOne option seems to have no effect when used with the
Delimiter option.
A .m file with examples (using strings) is attached.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Wed 18 Apr 2018 02:46:49 AM UTC Name: textscan_bug.m Size: 3KiB By:
None
<http://savannah.gnu.org/bugs/download.php?file_id=43964>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?53685>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #53685] textscan() with Delimiter specified always treats multiple delimiters as one,
anonymous <=