title: how to convert a cell to string in matlab
body: <p>Suppose I have a cell</p>
  
  <pre><code>v =    'v'    [576.5818]    [3.0286]    [576.9270]
  
         'v'    [576.5953]    [3.1180]    [576.8716]
  
         'f'    [      56]    [    58]    [      52]
  
         'f'    [      56]    [    58]    [      52]
  </code></pre>
  
  <p>and I want to convert this to a cell array using a format string for each element:<code>'   %.5f'</code></p>
  
  <p>How can I do this? I tried the following approach, but I get an error:</p>
  
  <pre><code>f1 = @(x) sprintf('   %.5f',x);
  cellfun(f1, num2cell(v),'UniformOutput', false) 
  </code></pre>
  
  <p>I am getting an error as ??? </p>
  
  <blockquote>
    <p><code>Error using ==&gt; sprintf</code> </p>
    
    <p><code>Function is not defined for 'cell' inputs.</code>    </p>
    
    <p><code>Error in ==&gt; @(x)sprintf('   %.5f',x)</code></p>
  </blockquote>
  
  <p>Can any one help me thanks in advance</p>