Skip to content

gzip

miscellaneous · scripts/miscellaneous/gzip.m

: files = gzip (file)
: files = gzip (file, outdir)

Compress file with gzip.

file is a file name, a wildcard pattern or a cellstr of those. Each output is named like its input with a .gz suffix and is written next to the input, or into outdir (created when needed). The inputs are kept. The result is a cell row with the absolute names of the files written.