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 日

0 投票

Read about datetime
vec = [2018 04 07] ;
datetime(vec)

カテゴリ

ヘルプ センター および File ExchangeDates and Time についてさらに検索

質問済み:

2018 年 4 月 7 日

編集済み:

2018 年 4 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by