calendarDuration.reshape
calendarDuration: B = reshape (A, d1, …, dN)
calendarDuration: B = reshape (A, …, [], …)
calendarDuration: B = reshape (A, dimvec)
Reshape calendarDuration array.
B = reshape (A, d1, …, dN) returns a
calendarDuration array B with specified dimensions d1,
…, dN, whose elements are taken columnwise from the
calendarDuration array A. The product of d1, …,
dN must equal the total number of elements in A.
B = reshape (A, …, returns
a calendarDuration array B with one dimension unspecified which is
calculated automatically so that the product of dimensions in B
matches the total elements in A, which must be divisible the
product of specified dimensions. An empty matrix [], …)([]) is used to
flag the unspecified dimension.
Source Code: calendarDuration