How do I change the header name of csv files?
16 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
dunphy
el 14 de Abr. de 2020
Comentada: Adam Danz
el 15 de Abr. de 2020
Here are the screenshots of my code and the ouput too
4 comentarios
Respuesta aceptada
Adam Danz
el 14 de Abr. de 2020
Editada: Adam Danz
el 15 de Abr. de 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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Tables en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!