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 件のコメント

Dyuman Joshi
Dyuman Joshi 2021 年 9 月 14 日
Try this
FileData = load('FileName.mat');
csvwrite('FileName.csv', FileData.M);
christophe blain
christophe blain 2021 年 9 月 15 日
many thanks Joshi, but I have an error :
>> FileData = load('matlab.mat');
>> csvwrite('test.csv', seqTable.M);
Unrecognized table variable name 'M'.
:(
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 日

0 投票

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

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeConvert Image Type についてさらに検索

タグ

質問済み:

2021 年 9 月 13 日

コメント済み:

2021 年 9 月 16 日

Community Treasure Hunt

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

Start Hunting!

Translated by