How can I write a table to .csv file

556 ビュー (過去 30 日間)
Dion Theunissen
Dion Theunissen 2021 年 5 月 21 日
回答済み: EmirBeg 2021 年 5 月 21 日
hi,
How can i write a table to an .csv file and save it?
Dion

採用された回答

EmirBeg
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

その他の回答 (1 件)

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

カテゴリ

Help Center および File ExchangeText Files についてさらに検索

タグ

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by