title: Matlab: How to read in numbers with a comma as decimal separator?
body: <p>I have a whole lot (hundreds of thousands) of rather large (>0.5MB) files, where data are numerical, but with a comma as decimal separator.
  It's impractical for me to use an external tool like <code>sed "s/,/./g"</code>.
  When the separator is a dot, I just use <code>textscan(fid, '%f%f%f')</code>, but I see no option to change the decimal separator.
  How can I read such a file in an efficient manner?</p>
  
  <p>Sample line from a file:</p>
  
  <pre><code>5,040000    18,040000   -0,030000
  </code></pre>
  
  <p>Note: There is a <a href="https://stackoverflow.com/questions/6123378/how-to-read-in-numbers-with-a-comma-as-decimal-separator">similar question for R</a>, but I use Matlab.</p>