How can I write a table to .csv file

499 Ansichten (letzte 30 Tage)
Dion Theunissen
Dion Theunissen am 21 Mai 2021
Beantwortet: EmirBeg am 21 Mai 2021
hi,
How can i write a table to an .csv file and save it?
Dion

Akzeptierte Antwort

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

Weitere Antworten (1)

Mathieu NOE
Mathieu NOE am 21 Mai 2021
hello
for numerical data you can use writematrix - see example below
writematrix(rand(100,5),"file.csv","Delimiter",",")

Kategorien

Mehr zu Data Import and Analysis finden Sie in Help Center und File Exchange

Produkte


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by