Rethinking about it I wanted to re-ask the initial question: can octave
read matlab v7.3 files with the load command?
From the documentation, octave can read and write in HDF5 files but I
think that it uses it's own format (it's nowhere specified that it is
compatible with matlab).
The mat v7.3 format is based on HDF5 but I think that they use special
conventions to encode their data. So it would not be surprising that it
is somehow different than octave's one (just guessing).
Implementing that functionality (it if isn't) would be nice and all the
building blocks are available.
Mathieu
Le 23/02/2013 00:06, Mathieu Dubois a écrit :
> I have looked at the code in src/ls-hdf5.cc. The first problem(can't
> read 'keys') seems to appear at line 526. The value of the
> type_class_id is unknown: it is neither H5T_FLOAT, H5T_INTEGER,
> H5T_STRING, H5T_COMPOUND.
>
> Printing it reveal that it has value 7 which according to HDF library
> headers (H5Tpublic.h) means: H5T_REFERENCE.
>
> For information I have Ubuntu 12.04 on a 64 bits system. Lib HDF5 is
> version 1.8.4-patch1. I have compiled octave without any option to
> configure.
>
> Mathieu
>
> Le 22/02/2013 19:31, Mathieu Dubois a écrit :
>> Hi,
>>
>> I have compiled and installed 3.6.4 and I have the same errors.
>> octave:1> load nyu_depth_v2_labeled.mat
>> warning: load: can't read 'keys' (unknown datatype)
>> HDF5-DIAG: Error detected in HDF5 (1.8.4-patch1) thread 140677001172800:
>> #000: ../../../src/H5Dio.c line 174 in H5Dread(): can't read data
>> major: Dataset
>> minor: Read failed
>> so on>
>>
>> Any idea? A quick googling in the error message suggest that this may
>> be related to variable length strings (the mat file contains cell
>> arrays of strings).
>>
>> Mathieu
>>
>> ----- Mail original -----
>>> De: "Jordi Gutiérrez Hermoso" <
[hidden email]>
>>> À: "vinukn" <
[hidden email]>
>>> Cc:
[hidden email]
>>> Envoyé: Vendredi 22 Février 2013 17:28:17
>>> Objet: Re: Reading Matlab
>>>
>>> On 22 February 2013 11:22, vinukn <
[hidden email]> wrote:
>>>> Did you tried in new versions of octave, ie 3.6.2, 3.6.3 or 3.7.1+
>>> Don't try 3.7.1+ unless you're interested in participating in Octave
>>> development. It's a development snapshot.
>>>
>>> - Jordi G. H.
>>> _______________________________________________
>>> Help-octave mailing list
>>>
[hidden email]
>>>
https://mailman.cae.wisc.edu/listinfo/help-octave>>>
>> _______________________________________________
>> Help-octave mailing list
>>
[hidden email]
>>
https://mailman.cae.wisc.edu/listinfo/help-octave>
> _______________________________________________
> Help-octave mailing list
>
[hidden email]
>
https://mailman.cae.wisc.edu/listinfo/help-octave_______________________________________________
Help-octave mailing list
[hidden email]
https://mailman.cae.wisc.edu/listinfo/help-octave