Gunzip doesn't recognize a .mat.gz file as a GZIP

3 views (last 30 days)
Ambra
Ambra on 4 Sep 2014
Edited: K E on 1 Jul 2016
Hi! I've received a package of zipped datas. Since it was impossible to access them I've used 7zip to access the subfolders. 7zip couldn't unzip the gzipped single files, so I've opened MatLab and tried on every gzip file to use gunzip:
gunzip 15*eeg1.mat.gz
gunzip 20*eeg2.mat.gz
gunzip 20*eeg3.mat.gz
gunzip 20*eeg4.mat.gz
gunzip 20*eeg5.mat.gz
Nothing special... but with some files in some folders it has worked and instead with other folders it returned to me these errors:
Error using gunzip>gunzipwrite (line 184)
File "Rat20-1.zip" is not in GZIP format.
Error in gunzip>gunzipEntries (line 122)
names{k} = gunzipwrite(entries(k).file, outputDir, baseName, streamCopier);
Error in gunzip (line 64)
names = gunzipEntries(entries, outputDir);
But the files still have the extention .mat.gz... What is that? What can I do?
  1 Comment
K E
K E on 1 Jul 2016
Edited: K E on 1 Jul 2016
I get the "not in GZIP format" error on one machine, but not on another! Would love a solution.

Sign in to comment.

Answers (0)

Categories

Find more on File Compression in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!