How can I write a table to .csv file
478 次查看(过去 30 天)
显示 更早的评论
hi,
How can i write a table to an .csv file and save it?
Dion
0 个评论
采纳的回答
EmirBeg
2021-5-21
writetable(x,'table.csv'); % x is the name of your table, the csv will be saved where your code is saved
0 个评论
更多回答(1 个)
Mathieu NOE
2021-5-21
hello
for numerical data you can use writematrix - see example below
writematrix(rand(100,5),"file.csv","Delimiter",",")
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Import and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!