How do I turn a matrix into dates?

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.

回答(1 个)

KSSV
KSSV 2018-4-7
编辑:KSSV 2018-4-7
Read about datetime
vec = [2018 04 07] ;
datetime(vec)

类别

帮助中心File Exchange 中查找有关 Dates and Time 的更多信息

编辑:

2018-4-7

Community Treasure Hunt

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

Start Hunting!

Translated by