필터 지우기
필터 지우기

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:

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by