Can not read HDF5 MatlabData by matlab
2 posters
Page 1 of 1
Can not read HDF5 MatlabData by matlab
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
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
Re: Can not read HDF5 MatlabData by matlab
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
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
Similar topics
» read mcd file in Matlab
» read spike data in Matlab
» Can I read the .mcd file using Matlab under Linux?
» Read mcd data in a 64bit system by matlab
» trigger data in hdf5 files (converted with datamanager)
» read spike data in Matlab
» Can I read the .mcd file using Matlab under Linux?
» Read mcd data in a 64bit system by matlab
» trigger data in hdf5 files (converted with datamanager)
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum