Welcome to our user forum (read only mode).
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Can not read HDF5 MatlabData by matlab

2 posters

Go down

Can not read HDF5 MatlabData by matlab Empty Can not read HDF5 MatlabData by matlab

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

Hi,

Today I use Multi channel Data manager to transfer my old mcd file (recorded by McRack version 4.3.5.0) 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,

Jenq-Wei


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

Error in ==>
McsAnalogStream.McsAnalogStream>McsAnalogStream.McsAnalogStream
at 72
timestamps = bsxfun(@plus,timestamps,int64([0 1
1])');

Error in ==>
McsRecording.McsRecording>McsRecording.McsRecording at 78
rec.AnalogStream{streams} =
McsHDF5.McsAnalogStream(filename,
recStruct.Groups(gidx).Groups(streams));

Error in ==> McsData.McsData>McsData.McsData at 151
data.Recording{recs} =
McsHDF5.McsRecording(filename,
inf.Groups.Groups(recs));

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

Error in ==> gui_mainfcn at 96
feval(varargin{:});

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

Error in ==>
@(hObject,eventdata)example('pushbutton1_Callback',hObject,eventdata,guidata(hObject))


??? Error while evaluating uicontrol Callback

Jenq-Wei

Posts : 4
Join date : 2009-07-30

Back to top Go down

Can not read HDF5 MatlabData by matlab Empty Re: Can not read HDF5 MatlabData by matlab

Post  Armin MCS Wed Dec 09, 2015 11:01 am

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

Armin MCS

Posts : 3
Join date : 2015-12-09

Back to top Go down

Back to top

- Similar topics

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