PDA

View Full Version : how to import hex in matlab



aradaj
November 12th, 2009, 01:13 AM
I was wondering how i could import the following space separated file to a matlab as a 2 column variable. I want matlab to keep the second column as hex



2 408ed4
1 10019d94
0 408ed8
1 0019d88
2 408edc
0 10013220
1 408ee04


matlab sees it as:


2 408
1 10019
0 408
1 0019
2 408
0 10013220
1 408


Thank you, any help would be appreciated

cszikszoy
November 12th, 2009, 03:20 AM
http://www.mathworks.com/access/helpdesk/help/techdoc/ref/hex2dec.html