MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   资料存档 (https://www.labfans.com/bbs/forumdisplay.php?f=72)
-   -   规范化包含日期的列MATLAB (https://www.labfans.com/bbs/showthread.php?t=26445)

poster 2019-12-14 20:13

规范化包含日期的列MATLAB
 
我想对矩阵进行归一化,但是如果列中包含月蛾/日/年的日期,我该如何对其进行归一化,摆脱它会更好吗?



[B]回答:[/B]

FWIW,请考虑:

> datestr(datenum(2011, 2, 28, 1, 2, 3)) ans= 28-Feb-2011 01:02:03 > datestr(floor(3600* datenum(2011, 2, 28, 1, 2, 3))/ 3600) ans= 28-Feb-2011 01:02:00 因此,现在可以基于datenum “规范化”,因为它最适合您。



[url=https://stackoverflow.com/questions/5135073]更多&回答...[/url]


所有时间均为北京时间。现在的时间是 08:38

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.