title: Converting string to num with a specific format in Matlab
body: <pre><code>&gt;&gt; str = '0009.51998'
  &gt;&gt; str2num(str)
  </code></pre>
  
  <p>or</p>
  
  <pre><code>&gt;&gt; sscanf(str,'%f')
  
  ans = 9.5200
  </code></pre>
  
  <p>I want to get this instead:</p>
  
  <pre><code>ans = 9.51998
  </code></pre>