zip
Compress files into zip file.
📝Syntax
res = zip(zipname, files)
res = zip(zipname, files, rootdir)
📥Input Arguments
Parameter Description
zipname a string: zip archive destination file.
files a character vector, a cell array of character vectors, or a string array: Names of files or folders to compress.
rootdir a character vector or string scalar: root path for the files to compress.
📤Output Arguments
Parameter Description
res a cell array of character vectors containing the names of the files included in zip archive.
📄Description

zip compress files and directories into zip archive.

Each individual file must be smaller than 4 GB.

Number of files specified must be less than 65535.

💡Examples
zip([tempdir(), 'test.zip'], [nelsonroot(), '/module_skeleton'])
🔗See Also
unzip
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub