Can not read HDF5 MatlabData by matlab

Go down

Can not read HDF5 MatlabData by matlab

Post  Jenq-Wei on Tue Dec 08, 2015 4:50 am


Today I use Multi channel Data manager to transfer my old mcd file (recorded by McRack version into HDF5 format.

I follow the example procedures.
When I run "data = McsHDF5.McsData('SOME_DATA_FILE.h5');", I get the following message in matlab (version R2010a).
How could I solve this problem?

Thank you,

Best Regards,


??? Error using ==> bsxfun
Undefined function 'plus' for input arguments of type 'int64'.

Error in ==>
at 72
timestamps = bsxfun(@plus,timestamps,int64([0 1

Error in ==>
McsRecording.McsRecording>McsRecording.McsRecording at 78
rec.AnalogStream{streams} =

Error in ==> McsData.McsData>McsData.McsData at 151
data.Recording{recs} =

Error in ==> example>pushbutton1_Callback at 88
data = McsHDF5.McsData(EEGfile);

Error in ==> gui_mainfcn at 96

Error in ==> example at 42
gui_mainfcn(gui_State, varargin{:});

Error in ==>

??? Error while evaluating uicontrol Callback


Posts : 4
Join date : 2009-07-30

View user profile

Back to top Go down

Re: Can not read HDF5 MatlabData by matlab

Post  Armin MCS on Tue Dec 08, 2015 11:01 pm

Dear Jenq-Wei,

Matlab versions older than R2010b have the silly restriction that they are unable to do even basic math with 64 Bit numbers. Even doing something like this produces an error:

int64(10) + int64(20)

The Matlab toolbox to import the HDF5 files imports time stamps by default as int64, which fails on older Matlab versions. You can get around this issue by importing the time stamps as data type double instead of int64:

cfg = [];
cfg.timeStampDataType = 'double';
data = McsHDF5.McsData('SOME_DATA_FILE.h5', cfg);

Kind regards

Armin MCS

Posts : 3
Join date : 2015-12-08

View user profile

Back to top Go down

Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum