convert to cell array

1 回表示 (過去 30 日間)
Shubhro Sankha Saha
Shubhro Sankha Saha 2021 年 4 月 15 日
回答済み: the cyclist 2021 年 4 月 15 日
Hi, I have a variable time = 19:33:02.58 and want to get the hours (19), minute(33), and seconds(02.58) as each cells in a cell array. How do I do that?

回答 (1 件)

the cyclist
the cyclist 2021 年 4 月 15 日
You can probably use the datevec function
datevec('19:33:02.58')
ans = 1×6
1.0e+03 * 2.0210 0.0010 0.0010 0.0190 0.0330 0.0026

カテゴリ

Help Center および File ExchangeDates and Time についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by