Azzera filtri
Azzera filtri

Unable to unzip and untar a .tar.gz file

30 visualizzazioni (ultimi 30 giorni)
I have downloaded a .tar.gz file from the internet and I have written a code to unzip and untar the file. But there is an error keep popping up where it says the path to the file is not in a GZIP format, could anybody offer any other alternative as to how I would be able to untar and unzip the file.
myFile= "F:\podTc2_nrt_2022_001.tar.gz";
the above is the code that was written, but i get an error using, where the file thats specified is not in a GZIP format.
Many Thanks
  2 Commenti
Benjamin Thompson
Benjamin Thompson il 11 Lug 2022
Can you try this with some other compression tool such as Winzip or 7-zip?
Tianchu Lu
Tianchu Lu il 11 Lug 2022
it didnt work out, but the strange things is that the following code has successfully unzip and untarred a similar file, but it stopped working, to which i am very confused about. Thanks, Regards

Accedi per commentare.

Risposta accettata

Tianchu Lu
Tianchu Lu il 11 Lug 2022
such method would be sufficient

Più risposte (0)


Scopri di più su File Compression in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by