Convert table sequence to csv

조회 수: 4 (최근 30일)
christophe blain
christophe blain 2021년 9월 13일
댓글: christophe blain 2021년 9월 16일
Hi every one,
I want to convert table sequence to csv file.
I use to write: load('matlab.mat');
and after : csvwrite('matlab.csv', seqTable);
And I have this error:
Check for incorrect argument data type or missing argument in call to function 'real'.
Error in csvwrite (line 47)
throw(e)
How I can do to convert it in csv file?
Many thanks for your help :)
christophe
  댓글 수: 4
Murugan C
Murugan C 2021년 9월 15일
try this
csvwrite('FileName.csv', seqTable.sensor1);
Dyuman Joshi
Dyuman Joshi 2021년 9월 15일
Hello Christopher, try what @Murugan C has suggested or try this -
seqTable = load('matlab.mat');
csvwrite('test.csv', seqTable.M);

댓글을 달려면 로그인하십시오.

답변 (1개)

Cris LaPierre
Cris LaPierre 2021년 9월 15일
Have you tried writetable?
seqTable = load('matlab.mat');
writetable(seqTable,'test.csv');
  댓글 수: 1
christophe blain
christophe blain 2021년 9월 16일
Many thanks Cris it's working :p
christophe

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by