フィルターのクリア

How can I convert the time to hours,minutes and seconds using matlab?

7 ビュー (過去 30 日間)
D Joseph
D Joseph 2015 年 9 月 5 日
コメント済み: Star Strider 2015 年 9 月 6 日
tic;
%program code
t=toc;
In what format the time t is displayed. How can I convert and display that time to hours,minutes and seconds?

採用された回答

Star Strider
Star Strider 2015 年 9 月 5 日
One possibility:
t_hms = datevec(t./(60*60*24)) % Express ‘t’ As Fraction Of A Day, Then Use ‘datevec’ To Convert
  2 件のコメント
D Joseph
D Joseph 2015 年 9 月 6 日
Thanks@Strider
Star Strider
Star Strider 2015 年 9 月 6 日
My pleasure.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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