How can I write a table to .csv file
616 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Dion Theunissen
el 21 de Mayo de 2021
Respondida: EmirBeg
el 21 de Mayo de 2021
hi,
How can i write a table to an .csv file and save it?
Dion
0 comentarios
Respuesta aceptada
EmirBeg
el 21 de Mayo de 2021
writetable(x,'table.csv'); % x is the name of your table, the csv will be saved where your code is saved
0 comentarios
Más respuestas (1)
Mathieu NOE
el 21 de Mayo de 2021
hello
for numerical data you can use writematrix - see example below
writematrix(rand(100,5),"file.csv","Delimiter",",")
0 comentarios
Ver también
Categorías
Más información sobre Text Files en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!