How to find a logical value to spot whether dates have the same month and year?

前端 未结 0 1217
半阙折子戏
半阙折子戏 2021-02-08 01:38

I have two date vectors and one vector of numbers:

% vector 1
t1 = datetime(2002,01,31):calmonths:datetime(2020,12,31);
t1= t1\';

% vector 2
t2 = datetime(2002,0         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题