| MATLAB Function Reference |    | 
Syntax
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.
| Note    
The unzipfunction does not preserve file permissions--file permissions inzipfilenameare not maintained in the extracted files. | 
Example 1
Copy the demos HTML files to the directory 'archive':
% Zip the demos html files to demos.zip zip('demos.zip','*.html',fullfile(matlabroot,'demos')) % Unzip demos.zip to the directory archive unzip('demos','archive')
Example 2
Unzip and list Cleve Moler's "Numerical Computing with MATLAB" examples to the output directory ncm.
See Also
|   | unwrap | upper |  | 
© 1994-2005 The MathWorks, Inc.