How to enter time if it is set to the following format

1 回表示 (過去 30 日間)
Yoanna Ivanova
Yoanna Ivanova 2020 年 3 月 10 日
回答済み: Subhamoy Saha 2020 年 3 月 10 日
I have an excel file where I want to enter some dates and times . I have a matlab script that specifies their format like this:
formatInDate = 'dd-mm-yyyy';
timeStep = 1/24/60/60/25;%
So I get that the date must be 10-03-2020 but how do I enter the time?

回答 (1 件)

Subhamoy Saha
Subhamoy Saha 2020 年 3 月 10 日
Use to get current time
datestr(now,"HH:MM:SS")

カテゴリ

Help Center および File ExchangeData Import from MATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by