unzip
Extract contents of ZIP file
Syntax
Description
unzip(
extracts the archived
contents of zipfilename
)zipfilename
into the current folder, preserving the
attributes and timestamps of each file. unzip
can extract files
from your local system or from an internet URL.
If a file exists with the same name and the file is not read-only, MATLAB® overwrites it. Otherwise, MATLAB issues a warning. On Microsoft® Windows® platforms, the hidden, system, and archive attributes are not set.
unzip(
extracts zipfilename
,outputfolder
)zipfilename
into outputfolder
. If
outputfolder
does not exist, MATLAB creates it.
unzip(___,Password=
extracts the contents of a password-protected, encrypted, ZIP file using the
specified password. You can specify this argument in addition to any of the input
argument combinations in the previous syntaxes. (since R2024b)password
)
Examples
Input Arguments
Output Arguments
Tips
To extract a ZIP file that contains non-7-bit ASCII characters, extract the file on a machine that has the appropriate language/encoding settings.