[Matlab] How to read in Hex data file?

Status
Not open for further replies.

davyzhu

Advanced Member level 1
Joined
May 23, 2004
Messages
494
Helped
5
Reputation
10
Reaction score
2
Trophy points
1,298
Location
oriental
Activity points
4,436
matlab read hex file

Hi all,

I want to read in Hex data file like:
//--------
0a36 1fac 34b5 ...
//--------

How to do this using fopen and fread?

Best regards,
Davy
 

matlab read hex

hi
use fgetl function and read a line then process it and extract information.
regards
 

    davyzhu

    Points: 2
    Helpful Answer Positive Rating
matlab hex

Use fopen(), fread() but at the time of print use %x..
 
Reactions: rfub

    rfub

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…