在一系列日期中查找第二天

时间:2017-02-18 10:55:22

标签: arrays matlab date

我在MATLAB中有一个datenum数组,每行都是一个新的日期。

我想为我的数组的每一行创建一个第二天的数组。 我该怎么做?

我熟悉datetime('tomorrow')但是如何使用过去的日期数组来做这件事?

1 个答案:

答案 0 :(得分:2)

您需要datenum

  

fun4 :: Int fun4 = I# 0# fun :: String -> String -> (Int, Bool) fun = \ _ (w1 :: String) -> (fun4, case readEither6 (run fun3 w1) of _ { [] -> fun2; : x ds -> case ds of _ { [] -> x; : ipv ipv1 -> fun1 } }) 转换datetime数组中的日期时间值   t到序列号数字。序列号代表整体   从固定的预设日期开始的小数天数(1月0日,   0000)在保证的ISO日历中。

只需在完整向量中添加1,然后根据需要转换回DateNumber = datenum(t),并为每个显示的日期指定日期。