Compress files into zip file
zip(
compresses the contents of zipfilename
,filenames
)filenames
into the zip file
zipfilename
. zip
recursively
compresses the content in folders. The resulting zip file contains the paths of
filenames
relative to the current folder. The zip file does
not store absolute paths.
zip(
specifies the paths for zipfilename
,filenames
,rootfolder
)filenames
relative to
rootfolder
rather than the current folder.
returns a cell array of character vectors containing the names of the files included
in entrynames
= zip(___)zipfilename
. You can use this syntax with any of the input
argument combinations in the previous syntaxes.
To zip files in the Current Folder browser, select the file, right-click to open the context menu, and then select Create Zip File.