Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

My EEG data

Status
Not open for further replies.

fongcj

Electrical
Sep 30, 2005
2
I have a bunch of text files that have EEG data. Problem is that they are all in hex and I want them in decimal. The format of these files look like this:
5020:30 a6 52
5040:26 cd e4

I know the hex2dec works for arrays in a certain format but I don't know how to put it in that format. Also dlmread with the range function doesn't seem to work for me. Any suggestions?
 
Replies continue below

Recommended for you

Read the file in as text, write a parser, in MATLAB if needed or in Perl or c outside of MATLAB. Convert the first column into integer seconds, concatenate the 2nd and third column and then use hex2dec.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor