MATLAB: Convert BIN to HEX

binaryconverthex

Hello guys,
I have a .BIN file that looks like this when opened in Matlab:
I would like to convert this to a HEX file with this kind of shape (this is from a HEX editor):
The 2 are not linked together, I just took portions of the file to show. How can I do such transformation so I can work with HEX data in Matlab?
Thanks!

Best Answer

doc fopen
doc fread
doc dec2hex