【发布时间】:2016-09-17 00:47:50
【问题描述】:
我有两个问题:
- 在以下 MATLAB 代码中,
x是格式为“datetime(Y,M,D,H,MI,S,MS)”的日期时间值。display(x)命令显示“00:00:00”。然而,“如果条件”显示“好评!”这意味着 x 的实际值大于 0,而不是 display(x) 命令显示的“00:00:00”。请建议我如何将x的完整值显示为毫秒或微秒。 - 如何将 '0000,00,00,00,00,00,200' 保存为日期时间值?
send = datetime(2016,08,31,06,01,00,00);
receive=datetime(2016,08,31,06,01,00,100);
x=receive-send;
display(x);
if (x>0)
disp('Well received!')
else
disp('Late!')
end
【问题讨论】:
标签: matlab