×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

My EEG data

My EEG data

My EEG data

(OP)
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?

RE: My EEG data

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources