title: How to print Matlab's DURATION
body: <p>Matlab has recently introduced a new type—duration. So I can do something like:</p>
  
  <pre><code>&gt;&gt; d = datetime('12:10:00') - datetime('12:05:00')
  d = 
     00:05:00
  &gt;&gt; whos d
    Name      Size            Bytes  Class       Attributes
    d         1x1               128  duration  
  </code></pre>
  
  <p>Now I'd like to output a result of some calculation, which is of <code>duration</code> type, using <code>fprintf</code>. However <code>duration</code> is neither a number nor a string, nor does it have a method to create a string. What can I do to make <code>fprintf</code> accept it?</p>
  
  <p>I am with Matlab 2014b.</p>