how to export datetime time series to excel

I have a datetime time series in matlab. I would like to export it to excel. I tried xlswrite but an error named
"Error using xlswrite (line 165) Input data must be a numeric, cell, or logical array"
How can i resolve it. Please help.

Answers (1)

doc exceltime
xlswrite('yourfile.xls',exceltime(yourdatetimearray))

Asked:

on 25 Feb 2017

Answered:

dpb
on 26 Feb 2017

Community Treasure Hunt

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

Start Hunting!