Skip to content

gunzip

miscellaneous · scripts/miscellaneous/gunzip.m

: files = gunzip (gzfile)
: files = gunzip (gzfile, outdir)

Decompress the gzip file(s) gzfile.

gzfile is a file name, a wildcard pattern or a cellstr of those. Each output file is named like its input without the .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.