How do I change the header name of csv files?
14 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Here are the screenshots of my code and the ouput too
4 Commenti
Risposta accettata
Adam Danz
il 14 Apr 2020
Modificato: Adam Danz
il 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')
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Standard File Formats in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!