Read numeric data as string data from csv (table.txt) file?
Ältere Kommentare anzeigen
Hi, matlab community.
I have a CSV file like:: 01,adam 02,eve 03,jenson
Now when I try to read this csv file (stored locally as table.txt) using readtable() it reads with imperfections. It stores all data correctly into 2-D array but "01" is stored as "1".
Is there any way to fix it? I want it exactly as it is in the file, i.e, as "01". Or, any way to convert numeric data to string data before it is stored in matlab variable.
3 Kommentare
Paolo
am 5 Jul. 2018
Can you attach your .csv file?
ARON ABHISHEK KUJUR
am 5 Jul. 2018
ARON ABHISHEK KUJUR
am 5 Jul. 2018
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Text Files finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!