How do I turn a matrix into dates?

13 vues (au cours des 30 derniers jours)
Will Sexton
Will Sexton le 7 Avr 2018
Modifié(e) : KSSV le 7 Avr 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.

Réponses (1)

KSSV
KSSV le 7 Avr 2018
Modifié(e) : KSSV le 7 Avr 2018
Read about datetime
vec = [2018 04 07] ;
datetime(vec)

Catégories

En savoir plus sur Dates and Time dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by