title: Generalization of mat2str to cell arrays
body: <p>I sometimes miss a function to produce a string representation of a (possibly nested) cell array. It would be a generalization of <a href="http://es.mathworks.com/help/matlab/ref/mat2str.html"><code>mat2str</code></a>, which only works for non-cell arrays (of numeric, char or logical type).</p>
  
  <blockquote>
    <p>Given an array <code>x</code>, how to obtain a string representation <code>y</code>, such that evaluating this string produces <code>x</code>?</p>
  </blockquote>
  
  <p>For example, the input</p>
  
  <pre><code>x = {[10 20], {'abc'; false; true;}};
  </code></pre>
  
  <p>should produce an output string like</p>
  
  <pre><code>y = '{[10 20], {''abc''; false; true}}';
  </code></pre>
  
  <p>(or some variation regarding spacing an separators), such that</p>
  
  <pre><code>isequal(x, eval(y))
  </code></pre>
  
  <p>is <code>true</code>.</p>