[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #44967] load() does not load ascii-file matrix
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #44967] load() does not load ascii-file matrix when there is an NA in final column |
Date: |
Thu, 30 Apr 2015 21:39:12 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:37.0) Gecko/20100101 Firefox/37.0 |
Update of bug #44967 (project octave):
Priority: 5 - Normal => 4
Status: None => Confirmed
Release: 3.8.2 => dev
Operating System: Mac OS => Any
Summary: load() does not load ascii-file matrix, when there
are too many NA values: => load() does not load ascii-file matrix when there
is an NA in final column
_______________________________________________________
Follow-up Comment #1:
Confirmed. The problem is not too many NA values. The following has a lot of
NA, but works.
octave:29> x = ones (3)
x =
1 1 1
1 1 1
1 1 1
octave:30> x(:, [1 2]) = NA
x =
NA NA 1
NA NA 1
NA NA 1
octave:31> save -ascii mat5.asc x
octave:32> clear x
octave:33> load -ascii mat5.asc
octave:34> who
Variables in the current scope:
mat5
octave:35> mat5
mat5 =
NA NA 1
NA NA 1
NA NA 1
The problem, however, seems to be that even a single NA value in the final
column is enough to stop the parsing of the file. Also, note that NaN works
fine. It is only NA values that prevent parsing.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?44967>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/