title: Regexp equivalent for floating number in matlab
body: <p>I'd like to know how <code>regexp</code> is used for floating numbers or is there any other function to do this.</p>
  
  <p>For example, the following returns <code>{'2', '5'}</code> rather than <code>{'2.5'}</code>.</p>
  
  <pre><code>nums= regexp('2.5','\d+','match')
  </code></pre>