How do I turn a matrix into dates?

10 visualizaciones (últimos 30 días)
Will Sexton
Will Sexton el 7 de Abr. de 2018
Editada: KSSV el 7 de Abr. de 2018
I have a have a 3 column matrix (month, day, year) and I need to print them as date formatted like month/day/year as part of a table.

Respuestas (1)

KSSV
KSSV el 7 de Abr. de 2018
Editada: KSSV el 7 de Abr. de 2018
Read about datetime
vec = [2018 04 07] ;
datetime(vec)

Categorías

Más información sobre Dates and Time en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by