How read hex values from CSV?
20 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi all, I have file which looks as:
</matlabcentral/answers/uploaded_files/116340/hex_csv.PNG> So, I need read only fourth column, how can I do it?
0 Kommentare
Antworten (1)
Star Strider
am 6 Mai 2018
I would do something like this:
filename = 'hex.csv';
fidi = fopen(filename, 'rt');
D = textscan(fidi, '%*f %*f %*f %s %*s', 'Delimiter',',');
The ‘D’ output will be a cell array of strings.
You may have to experiment to get the result you want. See the textscan documentation for the options the function offers.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Spreadsheets finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!