datastore won't read variable names
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi,
I'm trying to read data from a large csv file using matlab 2020a.
However, the variable names aren't read and I get 'Var_1', 'Var_2' etc. as the variable names.
How can I make it read the variable names?
Thanks
____
EDIT: The problem was the 'NumHeaderLines' property. It was automatically set to 1 when it should have been set to 0.
0 Kommentare
Antworten (1)
Ameer Hamza
am 21 Sep. 2020
Use PreserveVariableNames options
ds = datastore('filename', 'PreserveVariableNames', true)
3 Kommentare
Siehe auch
Kategorien
Mehr zu Workspace Variables and MAT Files 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!