Export dataset to excel including serial date numbers
Mostrar comentarios más antiguos
Hi all,
ich have a dataset where the first column represents the time, in form of the matlab serial date number. When I use the function
export(DS,'XLSfile',filename)
the time I see in Excel is wrong by 1900 years, representing the different date systems. Is there an elegant way to export the whole dataset to excel with the first column beeing the time in form of the Excel serial date number? And wouldn't it probably make sense to incorporate such a function in the export function?
Regards, bearli
Respuestas (1)
Andrei Bobrov
el 20 de Mzo. de 2013
Editada: Andrei Bobrov
el 20 de Mzo. de 2013
Ds = datenum('30-Dec-2013') - 693960;
If you have Financial Toolbox, you can use function m2xdate.
Ds = m2xdate(datenum('30-Dec-2013'));
1 comentario
Bearli Ubuku
el 20 de Mzo. de 2013
Categorías
Más información sobre Spreadsheets en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!