Read .raw binary files (created w MCDataTool) into Matl
Page 1 of 1
Read .raw binary files (created w MCDataTool) into Matl
Dear MCS Software Team,
I wish to import mcd data into matlab on a channel by channel basis (rather than all channels for small time windows). I thus used the mc data tool to convert an mcd file into 60 binary files (*.raw), every time selecting just ONE channel. I thereby did not include a header.
Now, I have the problem to properly read the created binary file.raw into matlab, using fread. The precision arguments 'bit16', 'ubit16', 'int16' or 'uint16' all seem to give the correct length (ie number of data points), but I would need to know how exactly to set all (other) arguments using in fread,
A = fread(fid, count, precision, skip, machineformat)
Or maybe you have an alternative solution to the above stated problem.
Looking forward to hearing from you, Thomas
I wish to import mcd data into matlab on a channel by channel basis (rather than all channels for small time windows). I thus used the mc data tool to convert an mcd file into 60 binary files (*.raw), every time selecting just ONE channel. I thereby did not include a header.
Now, I have the problem to properly read the created binary file.raw into matlab, using fread. The precision arguments 'bit16', 'ubit16', 'int16' or 'uint16' all seem to give the correct length (ie number of data points), but I would need to know how exactly to set all (other) arguments using in fread,
A = fread(fid, count, precision, skip, machineformat)
Or maybe you have an alternative solution to the above stated problem.
Looking forward to hearing from you, Thomas
mcs- Posts : 518
Join date : 2008-06-10
Re: Read .raw binary files (created w MCDataTool) into Matl
Dear t_peterma,
we recommend an alternative solution for your problem. Open the mcd file (with all channels) in the replayer of MC_Rack. Then select one channel at a time in the recorder and re-record the data. You will get one mcd file for each channel. You can read these mcd files with our matlab functions. You find the functions in the subdirectory MCStreamSupport\Matlab of the MC_Rack installation directory.
Kind regards,
Gerald
we recommend an alternative solution for your problem. Open the mcd file (with all channels) in the replayer of MC_Rack. Then select one channel at a time in the recorder and re-record the data. You will get one mcd file for each channel. You can read these mcd files with our matlab functions. You find the functions in the subdirectory MCStreamSupport\Matlab of the MC_Rack installation directory.
Kind regards,
Gerald
mcs- Posts : 518
Join date : 2008-06-10
Similar topics
» How can I read a 16x16 electrode array MCD files ?
» C++ open multiple files one by one?
» Best way to import mcd-files into Spike2?
» files formats
» open old mcd files
» C++ open multiple files one by one?
» Best way to import mcd-files into Spike2?
» files formats
» open old mcd files
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum