How can I write a table to .csv file

 采纳的回答

writetable(x,'table.csv'); % x is the name of your table, the csv will be saved where your code is saved

更多回答(1 个)

hello
for numerical data you can use writematrix - see example below
writematrix(rand(100,5),"file.csv","Delimiter",",")

产品

版本

R2021a

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by