How do I change the header name of csv files?
16 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
dunphy
am 14 Apr. 2020
Kommentiert: Adam Danz
am 15 Apr. 2020
Here are the screenshots of my code and the ouput too
4 Kommentare
Akzeptierte Antwort
Adam Danz
am 14 Apr. 2020
Bearbeitet: Adam Danz
am 15 Apr. 2020
When you write the csv file, there are no headers using the syntax you shared. The Var1 Var2.... headers appear when you read the data back into Matlab.
T = array2table([p(:),d(:),e(:)], 'VariableNames', {'p','d','e'})
% Replace these with meaningful variable names ^^^^^^^^^^^^^
writetable(T, 'speed.csv')
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Tables 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!