Precision issues with dlmwrite / dlmread : <p>I recently discovered, quite harshly, that Matlab's <code>dlmread</code> and <code>dlmwrite</code> don't store numerical values at <code>double</code> accuracy. It effects my code, and I need to store big arrays with more precision.</p>

<p>A (not) working example : </p>

<pre><code>pi1 = pi;
dlmwrite('pi',pi1);
pi2 = dlmread('pi');
pi1-pi2

ans =

-7.3464e-06
</code></pre>

<p>While I'd expect machine-error answer, of 10^-14 accuracy.</p>

<p>I'd much rather keep using a simple function as <code>dlmwrite</code>, but I will consider other solutions.</p>

<p>Thanks</p>
