How can I write a table to .csv file

조회 수: 577 (최근 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 CenterFile Exchange에서 Text Files에 대해 자세히 알아보기

태그

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by