Reputation: 171
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
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