How to write cell array of matab into a csv file

4 ビュー (過去 30 日間)
Alsadegh Mohamed
Alsadegh Mohamed 2017 年 6 月 15 日
編集済み: Lode Bosmans 2019 年 7 月 29 日
I have matlab file consist of many columns of numbers and last column is characters in cell array I want to convert cell array into csv file because i want to use csv file with weka

回答 (1 件)

Walter Roberson
Walter Roberson 2017 年 6 月 15 日
If you are using R2013b or later, then
filename = 'test_output.csv'; %must end in csv
writetable( cell2table(YourCell), filename, 'writevariablenames', false, 'quotestrings', true)
  2 件のコメント
Alsadegh Mohamed
Alsadegh Mohamed 2017 年 6 月 16 日
Exactly thank you Walter Roberson
Lode Bosmans
Lode Bosmans 2019 年 7 月 29 日
編集済み: Lode Bosmans 2019 年 7 月 29 日
Indeed. I read several similar topics about this question. This is the only answer that works as expected. Thanks a lot!

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeTables についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by