Method Reference: calendarDuration.cat

calendarDuration: C = cat (dim, A, B, …)

Concatenate calendarDuration arrays.

C = cat (dim, A, B, …) concatenates calendarDuration arrays A, B, … along dimension dim. All input arrays must have the same size except along the operating dimension dim. Any of the input arrays may also be string arrays or cell arrays of character vectors of compatible size. Additionally, an input can be a numeric matrix, which when parsed to the constructor will return a calendarDuration array of compatible size.

Source Code: calendarDuration