calendarDuration.vertcat
calendarDuration: C = vertcat (A, B, …)
Vertical concatenation of calendarDuration arrays.
C = vertcat (A, B, … is the equivalent of
the syntax B = [A; B; …] and vertically
concatenates the calendarDuration arrays A, B, …. All
input arrays must have the same size except along the first dimension.
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
Calendar durations concatenate like ordinary arrays; [a; b] stacks them into a single column.
a = calyears ([1; 2])
a =
2x1 calendarDuration array
1y
2y
b = calmonths ([3; 4])
b =
2x1 calendarDuration array
3mo
4mo
[a; b]
ans =
4x1 calendarDuration array
1y
2y
3mo
4mo