.csv file hex to dec converting(hex2dec is not working)
Show older comments
hi. i'm converting .csv file (hex) to .csv file (dec).
if a.csv file is hexadecimal
a.csv file :
['eb','80','80' ; 'eb','80','80' ...]
A = hex2dec('a.csv')
error : Error using hex2dec
Hexadecimal text must consist of characters 0-9 and A-F.
always error occurs.
Accepted Answer
More Answers (1)
KSSV
on 10 Nov 2021
0 votes
You cannot convert like that.
- Read the csv file data using csvread or readtable.
- Then on the data use the function hex2dec
- Then write converted data into csv file using write2table
1 Comment
Jeong Dae Kim
on 10 Nov 2021
Categories
Find more on Spreadsheets in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!