How do I change the header name of csv files?
15 次查看(过去 30 天)
显示 更早的评论
Here are the screenshots of my code and the ouput too
采纳的回答
Adam Danz
2020-4-14
编辑:Adam Danz
2020-4-15
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')
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!