How to write cell array of matab into a csv file

3 vues (au cours des 30 derniers jours)
Alsadegh Mohamed
Alsadegh Mohamed le 15 Juin 2017
Modifié(e) : Lode Bosmans le 29 Juil 2019
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

Réponses (1)

Walter Roberson
Walter Roberson le 15 Juin 2017
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 commentaires
Alsadegh Mohamed
Alsadegh Mohamed le 16 Juin 2017
Exactly thank you Walter Roberson
Lode Bosmans
Lode Bosmans le 29 Juil 2019
Modifié(e) : Lode Bosmans le 29 Juil 2019
Indeed. I read several similar topics about this question. This is the only answer that works as expected. Thanks a lot!

Connectez-vous pour commenter.

Catégories

En savoir plus sur Tables dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by