Export dataset to excel including serial date numbers
Afficher commentaires plus anciens
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
Réponses (1)
Andrei Bobrov
le 20 Mar 2013
Modifié(e) : Andrei Bobrov
le 20 Mar 2013
Ds = datenum('30-Dec-2013') - 693960;
If you have Financial Toolbox, you can use function m2xdate.
Ds = m2xdate(datenum('30-Dec-2013'));
1 commentaire
Bearli Ubuku
le 20 Mar 2013
Catégories
En savoir plus sur Spreadsheets dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!