How to write cell array of matab into a csv file

3 views (last 30 days)
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

Answers (1)

Walter Roberson
Walter Roberson on 15 Jun 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 Comments
Lode Bosmans
Lode Bosmans on 29 Jul 2019
Edited: Lode Bosmans on 29 Jul 2019
Indeed. I read several similar topics about this question. This is the only answer that works as expected. Thanks a lot!

Sign in to comment.

Categories

Find more on Tables in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!