[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #55828] io csv2cell doesn't recognize some num
From: |
A.R. Burgers |
Subject: |
[Octave-bug-tracker] [bug #55828] io csv2cell doesn't recognize some numeric input |
Date: |
Mon, 4 Mar 2019 14:58:31 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299 |
URL:
<https://savannah.gnu.org/bugs/?55828>
Summary: io csv2cell doesn't recognize some numeric input
Project: GNU Octave
Submitted by: arb
Submitted on: Mon 04 Mar 2019 07:58:30 PM UTC
Category: Octave Forge Package
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 5.1.0
Operating System: Any
_______________________________________________________
Details:
csv2cell seems to handle space after the number, between number and separator
incorrectly.
Save the next 2 lines as file space.csv:
a, b, c
str_a, 3.0 , 18
read space.csv with the following script:
pkg load io;
ver = version
hg_id = __octave_config_info__.hg_id
pkg list io
data = csv2cell('space.csv', ',');
cellfun(@isnumeric, data)
The output is this (18 recognized as numeric, 3.0 not).
If I remove the space between 3.0 and "," 3.0 is recognized as a number.
ver = 5.1.1
hg_id = e07ea25d58f5+
Package Name | Version | Installation directory
--------------+---------+-----------------------
io *| 2.4.12 | /home/dusk/aburgers/octave-5.1/io-2.4.12
ans =
0 0 0
0 0 1
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?55828>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #55828] io csv2cell doesn't recognize some numeric input,
A.R. Burgers <=