[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #31471] Problem saving ranges with HDF5 format
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #31471] Problem saving ranges with HDF5 format |
Date: |
Tue, 26 Oct 2010 18:03:35 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100819 Iceweasel/3.5.11 (like Firefox/3.5.11) |
URL:
<http://savannah.gnu.org/bugs/?31471>
Summary: Problem saving ranges with HDF5 format
Project: GNU Octave
Submitted by: None
Submitted on: Tue 26 Oct 2010 06:03:34 PM UTC
Category: Libraries
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: Moshe Apelbaum
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: 3.2.2
Operating System: Microsoft Windows
_______________________________________________________
Details:
Hello, I used Octave 3.2.2 on Win Xp Sp3.
After saving a struct that contains a vector to hdf5 file I try to load the
file and I don't get the same vector.
Code Example:
struct.g=(-1.0e-007:0.02:0.3)+0.84; % vector with 16 elements
save('-hdf5', 'bug.h5'); % the bug caused because of this line - open the
file
in HDF View and you will see
m=load('bug.h5');
size(m.struct.g) % should be vector with 16 elements - the bug is that it
contains 17 elements
size(struct.g) % a vector with 16 elements as it should be
% when saving in mat format - there is no problem:
save('-mat', 'noBug.mat', struct);
n=load('noBug.mat');
size(n.struct.g) % contains 16 elements as it should
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?31471>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #31471] Problem saving ranges with HDF5 format,
anonymous <=