Info

此问题已关闭。 请重新打开它进行编辑或回答。

I have imported data into an workspace file. I have tried writng this to a xls file but keep gettign error.

1 次查看(过去 30 天)
I have imported data into an workspace file. I have tried writng this to a xls file but keep gettign error.
The error is:
'Error using xlswrite (line 172). Input data must be a numeric, cell or logical array.
filename = 'TBS020110NWear100cycle.xls';
workspace=TBS020110NWear100cycle;
xlswrite(filename,workspace,'1','A1');
I looked at the file and it all looks like data.
  4 个评论
Marian Kennedy
Marian Kennedy 2018-1-25
编辑:Marian Kennedy 2018-1-25
Thank you.
I changed the variable as suggested:
filename = 'CETR1.xls'; worktofile=CETR1; xlswrite(filename,worktofile,'1','A1');
class(worktofile) is double
I can take the variable and save it as a new array and the issue disappears but I am not sure why.

回答(0 个)

此问题已关闭。

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by