Clear Filters
Clear Filters

Info

This question is closed. Reopen it to edit or answer.

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

1 view (last 30 days)
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 Comments
Marian Kennedy
Marian Kennedy on 25 Jan 2018
Edited: Marian Kennedy on 25 Jan 2018
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.

Answers (0)

This question is closed.

Tags

Products

Community Treasure Hunt

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

Start Hunting!