LISTZIPCONTENTS(ZIPFILENAME) lists the archived contents of ZIPFILENAME
ZIPFILENAME is a string specifying the name of the zip file.
ZIPFILENAME can include the directory name; otherwise, the file must be
in the current directory or in a directory on the MATLAB path.
FILENAMES = LISTZIPCONTENTS(ZIPFILENAME) lists the zip file contents
and returns the file names into the string cell array FILENAMES.
Unsupported zip files
---------------------
LISTZIPCONTENTS does not support password-protected or encrypted zip
archives.
Examples
--------
% List the contents of demos.zip
listzipcontents('demos.zip')
Cite As
Bob Hamans (2026). LISTZIPCONTENTS (https://ch.mathworks.com/matlabcentral/fileexchange/32089-listzipcontents), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired: zipContentsInfo
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
