Function Reference
— Function File: entries = tar (tarfile, files, root)

Pack files files into the TAR archive tarfile. The list of files must be a string or a cell array of strings.

The optional argument root changes the relative path of files from the current directory.

If an output argument is requested the entries in the archive are returned in a cell array.

See also: untar gzip gunzip zip unzip