create a csv file

24 visualizaciones (últimos 30 días)
Masih Alavy
Masih Alavy el 23 de Mayo de 2018
Respondida: Wilson A N el 11 de Jun. de 2018
Hello,
Can someone please help me write the code in MATLAB to create a csv file like the attached? My matlab code creates all the numeric values. Thanks a lot.

Respuestas (1)

Wilson A N
Wilson A N el 11 de Jun. de 2018
You can first create a cell array which preserves the same structure as you want to get displayed in the csv file.
Next, to import it to a .csv file or .xlsx file, use the xlswrite command with the filename,cellarray, sheet and desired range.

Categorías

Más información sobre Tables en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by