Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[Matlab] How to read in Hex data file?

Status
Not open for further replies.

davyzhu

Advanced Member level 1
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
 

hr_rezaee

Advanced Member level 3
Advanced Member level 3
Joined
Oct 6, 2004
Messages
747
Helped
109
Reputation
218
Reaction score
24
Trophy points
1,298
Location
Iran-Mashhad
Activity points
4,025
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

jjohn

Banned
Full Member level 3
Joined
Jun 17, 2006
Messages
156
Helped
17
Reputation
34
Reaction score
8
Trophy points
1,298
Activity points
0
matlab hex

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

    rfub

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top