Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MATLAB: error unzipping large files (above 4GB)

I have a for loop that is iterating through around a hundred files, unzipping and performing some operation. It works great on 90 of these but on those files above around 4GB I get the error message: (Error using unzip (line 84) Invalid zip file "C:\filename.zip".)

Is there any way to unzip these larger files in MATLAB?

thanks

like image 616
user3470496 Avatar asked Jan 17 '26 13:01

user3470496


1 Answers

Using files above 4GB requires ZIP64, the MATLAB version you are using does not support it (Not sure if it was added in recent version).

For recent MATLAB versions which can use python libraries, use the python unzip commands (which support ZIP64). For older MATLAB versions look for an alternative library, for example Apache Commons Compress.

like image 200
Daniel Avatar answered Jan 20 '26 05:01

Daniel