Read compressed files without unzipping them in Matlab
<p>I have (very large) comma separated files compressed in bz2 format. If I un-compressed them and I read with</p>

<pre><code>    fileID = fopen('file.dat');
    X = textscan(fileID,'%d %d64 %s %f %d %f %f %d', 'delimiter', ',');
    fclose(fileID);
</code></pre>

<p>everything is fine. But I would like to read them without uncompressing them, something like</p>

<pre><code>    fileID = fopen('file.bz2');
    X = textscan(fileID,'%d %d64 %s %f %d %f %f %d', 'delimiter', ',');
    fclose(fileID);
</code></pre>

<p>which, unfortunatley, returns an empty X. Any suggestions? Do I have to uncompressed them unavoidably via the system(' ... ') command ?</p>