duration

Methods

Method Reference: duration.cellstr

duration: cstr = cellstr (D)
duration: cstr = cellstr (D, Format)

Convert duration array to a cell array of character vectors.

cstr = cellstr (D) returns a cellstr array of character vectors, cstr, which has the same size as the input duration D.

Source Code: duration

Example: 1

cellstr converts the array into a cell array of its display strings.

 d = minutes ([90, 150])
d =
  1x2 duration array

    90 min    150 min
 cellstr (d)
ans =
  1x2 cell array

    {'90 min'}    {'150 min'}