res = zip(zipname, files)
res = zip(zipname, files, rootdir)
| 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. |
| Parameter | Description |
|---|---|
| res | a cell array of character vectors containing the names of the files included in zip archive. |
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.
zip([tempdir(), 'test.zip'], [nelsonroot(), '/module_skeleton'])
| Version | Description |
|---|---|
| 1.0.0 | initial version |