create a csv file

53 ビュー (過去 30 日間)
Masih Alavy
Masih Alavy 2018 年 5 月 23 日
回答済み: Wilson A N 2018 年 6 月 11 日
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.

回答 (1 件)

Wilson A N
Wilson A N 2018 年 6 月 11 日
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.

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by