MATLAB: Unzipping a gzipped string

databasegzipMATLABsqlitestring

Hello, Currently, we are using PHP to read data from a gzipped, base 64 encoded database and outputting the results which is then read by Matlab and manipulated as needed.
I would like to read the database directly from Matlab. I have no problem reading the database and decoding from Base64. However, I cannot understand how to unzip (uncompress) the string.
In PHP, it is a simple function called 'gzuncompress'. However, in Matlab, the gzip function requires a file, not a string.
Any suggestions would be great. Thanks Keith

Best Answer

You could always call a PHP script from Matlab using the system() call and have it return the uncompressed string.