Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

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

5 vues (au cours des 30 derniers jours)
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 commentaires
Marian Kennedy
Marian Kennedy le 25 Jan 2018
Modifié(e) : Marian Kennedy le 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.
Walter Roberson
Walter Roberson le 25 Jan 2018
I am not sure whether the problem is still occurring when you are using worktofile ?

Réponses (0)

Cette question est clôturée.

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by