Asking a user in the command window to enter YYYY-MM-DD HH-MM-SS-MS

1 次查看(过去 30 天)
How do I create a script that asks for a user to input date/time data in the form YYYY-MM-DD HH-MM-SS-MS? I want the user to enter this information in the command window after I click "Run"

回答(1 个)

Walter Roberson
Walter Roberson 2021-10-12
T = input('Enter time in the form YYYY-MM-DD HH-MM-SS-MS: ', 's')
This will give back a character vector that has not been validated.
  3 个评论

请先登录,再进行评论。

标签

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by