How can I write a table to .csv file

 Accepted Answer

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

More Answers (1)

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

Categories

Products

Release

R2021a

Asked:

on 21 May 2021

Answered:

on 21 May 2021

Community Treasure Hunt

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

Start Hunting!