[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #40575] Saving cells containing matrices with
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #40575] Saving cells containing matrices with NA fails to load |
Date: |
Thu, 14 Nov 2013 04:07:04 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:25.0) Gecko/20100101 Firefox/25.0 |
URL:
<http://savannah.gnu.org/bugs/?40575>
Summary: Saving cells containing matrices with NA fails to
load
Project: GNU Octave
Submitted by: None
Submitted on: Thu 14 Nov 2013 04:07:03 AM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: Matt
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: 3.6.4
Operating System: GNU/Linux
_______________________________________________________
Details:
If your cell array contains matrices with NA (not NaN), and you save it as
ascii (is this the default?), you can not load it in again.
Here is a simple example
H = cell(2,1)
H{1} = ones(2,3) - j * ones(2,3) ;
zz = ones(2,3) ;
zz(2,:) = j *[NA, NA, NA] ;
H{2} = zz ;
save bad H
load bad
This fails with the error:
error: load: failed to load matrix constant
error: load: trouble reading ascii file ''
error: load: reading file
error: load: cell array element had unexpected name
error: load: failed to load cell element
error: load: trouble reading ascii file 'bad'
error: load: reading file bad
error: called from:
I have run across several bugs in trying to convert a large complex matlab
project into octave. For some reason some of the converted Matlab code is
filling some columns of my matrices with NA's instead of NaNs. I am now faced
with the prospect of flushing out the NAs and replacing them with NaNs to get
this to work.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?40575>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #40575] Saving cells containing matrices with NA fails to load,
anonymous <=
- [Octave-bug-tracker] [bug #40575] Saving cells containing matrices with NA fails to load, Rik, 2013/11/14
- [Octave-bug-tracker] [bug #40575] Saving cells containing matrices with NA fails to load, John W. Eaton, 2013/11/14
- [Octave-bug-tracker] [bug #40575] Saving cells containing matrices with NA fails to load, Matt, 2013/11/14
- [Octave-bug-tracker] [bug #40575] Saving cells containing matrices with NA fails to load, John W. Eaton, 2013/11/14
- [Octave-bug-tracker] [bug #40575] Saving cells containing matrices with NA fails to load, Rik, 2013/11/14
- [Octave-bug-tracker] [bug #40575] Saving cells containing matrices with NA fails to load, Rik, 2013/11/14
- [Octave-bug-tracker] [bug #40575] Saving cells containing matrices with NA fails to load, Matt, 2013/11/15
- [Octave-bug-tracker] [bug #40575] Saving cells containing matrices with NA fails to load, Rik, 2013/11/16