create a csv file

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.

Risposte (1)

Wilson A N
Wilson A N il 11 Giu 2018

0 voti

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.

Categorie

Richiesto:

il 23 Mag 2018

Risposto:

il 11 Giu 2018

Community Treasure Hunt

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

Start Hunting!

Translated by