title: MATLAB: Conversion to char from cell is not possible
body: <p>So I've got a struct, settings, which contains three fields, averageValue, heightLabels and heights.</p>
  
  <p>settings.averageValue = 7.5121 7.2742 7.4602
  settings.heights = 105.1000 105.2000 105.3000</p>
  
  <p>I'm looping through these with the following code:</p>
  
  <pre><code>for m = 1:length(settings.averageValue)
      settings.heightLabels(m) = {sprintf{'%.1f %s', settings.heights(m), 'm')};
  end
  </code></pre>
  
  <p>However, I get the error "Conversion to char from cell is not possible.". Any ideas?</p>