Convert table sequence to csv

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 个评论

Try this
FileData = load('FileName.mat');
csvwrite('FileName.csv', FileData.M);
many thanks Joshi, but I have an error :
>> FileData = load('matlab.mat');
>> csvwrite('test.csv', seqTable.M);
Unrecognized table variable name 'M'.
:(
try this
csvwrite('FileName.csv', seqTable.sensor1);
Hello Christopher, try what @Murugan C has suggested or try this -
seqTable = load('matlab.mat');
csvwrite('test.csv', seqTable.M);

请先登录,再进行评论。

回答(1 个)

Have you tried writetable?
seqTable = load('matlab.mat');
writetable(seqTable,'test.csv');

类别

帮助中心File Exchange 中查找有关 Convert Image Type 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by