MATLAB: Managing year and months

time series

i have dataset in following formay M = [2015 1 5 ; 2015 1 6 ; 2015 2 6 ; 2014 3 6 ; ]
split like this A = [2015 1 5 ; 2015 1 6 ; ]
B = [2015 2 6 ;]
C = [2014 3 6 ]

Best Answer

doc datetime
Now:
Mdt = datetime(M)