Method Reference: calendarDuration.size

calendarDuration: sz = size (calD)
calendarDuration: dim_sz = size (calD, dim)
calendarDuration: dim_sz = size (calD, d1, d2, …)
calendarDuration: [rows, columns, …, dim_n_sz] = size (…)

Size of a calendarDuration array.

sz = size (calD) returns a row vector with the size (number of elements) of each dimension for the calendar duration array calD.

dim_sz = size (calD, dim) returns the size of the corresponding dimension specified in dim. If dim is a vector, then dim_sz is a vector of the same length and with each element corresponding to a specified dimension. Multiple dimensions may also be specified as separate arguments.

With a single output argument, size returns a row vector. When called with multiple output arguments, size returns the size of dimension N in the Nth argument.

Source Code: calendarDuration