save a cell matrix as csv format

6 次查看(过去 30 天)
tzaloupas
tzaloupas 2013-2-27
Dear all,
I have a cell matrix
A={ 'name' 'area' 'values'
'A1' 'wexc' [ 1.1880]
'A2' 'dsfdg' [ 1.1505]
'A3' 'dfvsd' [ NaN]
'A4' 'sdw' [ 1.2081]};
and I want to save it as an csv format
could you please verify that this is the correct command for doing this?
csvwrite('YourNewFile.csv', A);
thanks

回答(2 个)

Azzi Abdelmalek
Azzi Abdelmalek 2013-2-27
编辑:Azzi Abdelmalek 2013-2-27
csvwrite does not accept cell arrays
  2 个评论
tzaloupas
tzaloupas 2013-2-27
Thanks Azzi. so What do I have to do?. could you possible provide a sample code for the above example?
Azzi Abdelmalek
Azzi Abdelmalek 2013-2-27
xlswrite('YourNewFile.xls', A); % save it as an excell file
In Excell you can save your file as a csv format

请先登录,再进行评论。


Shashank Prasanna
Shashank Prasanna 2013-2-27
The following solutions page answers this exact questions:

Community Treasure Hunt

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

Start Hunting!

Translated by