importing dates into excel

3 vues (au cours des 30 derniers jours)
antonet
antonet le 23 Mai 2012
HI all, I issue the command
A=datestr(datenum({'02/11/08'},'dd/mm/yy')+(0:28:38*28),{'dd/mm/yy'});
but A has size 39 by 8 . I want to be 39 by 1 so as to import A in an excel as a column.
  1 commentaire
Oleg Komarov
Oleg Komarov le 23 Mai 2012
You cannot supply the date format as {'dd/mm/yy'}

Connectez-vous pour commenter.

Réponse acceptée

Oleg Komarov
Oleg Komarov le 23 Mai 2012
Use cellstr()
cellstr(datestr(datenum({'02/11/08'},'dd/mm/yy')+(0:28:38*28),'dd/mm/yy'))
  1 commentaire
antonet
antonet le 23 Mai 2012
nice!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Data Import from MATLAB dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by