user3470496
user3470496

Reputation: 171

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

Upvotes: 3

Views: 951

Answers (1)

Daniel
Daniel

Reputation: 36710

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.

Upvotes: 1

Related Questions