MATLAB Function Reference Previous page   Next Page
unzip

Extract contents of zip-file

Syntax

unzip(url, ...)

Description

unzip(zipfilename) extracts the archived contents of zipfilename into the current directory.

zipfilename is a string specifying the name of the zip-file. The .zip extension is appended to zipfilename if omitted. zipfilename can include the directory name; otherwise, the file must be in the current directory or in a directory on the MATLAB path.

unzip(zipfilename,outputdir) extracts the contents of zipfilename into the directory outputdir.

unzip(url, ...) extracts the zipped contents from an Internet universal resource locator (URL). The URL must include the protocol type (e.g., http://). The URL is downloaded to the temp directory and deleted.

filenames = unzip(url, ...) extracts the zip archive and returns the relative pathnames of the extracted files into the string cell array filenames.

Examples

Example 1

Copy the demos HTML files to the directory 'archive':

Example 2

Unzip and list Cleve Moler's "Numerical Computing with MATLAB" examples to the output directory ncm.

See Also

gzip, gunzip, tar, untar, zip


Previous page  unwrap upper Next page

© 1994-2005 The MathWorks, Inc.