How do I turn a matrix into dates?

13 visualizzazioni (ultimi 30 giorni)
Will Sexton
Will Sexton il 7 Apr 2018
Modificato: KSSV il 7 Apr 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.

Risposte (1)

KSSV
KSSV il 7 Apr 2018
Modificato: KSSV il 7 Apr 2018
Read about datetime
vec = [2018 04 07] ;
datetime(vec)

Categorie

Scopri di più su Dates and Time in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by