Why is the 'untar' function not working with URL, as shown in the example?
Mostra commenti meno recenti
When I attempt to run the script from the 'untar' documentation:
https://uk.mathworks.com/help/matlab/ref/untar.html
That is:
>> url ='http://www.mathworks.com/moler/ncm.tar.gz';
>> ncmFiles = untar(url,'ncm')
MATLAB throws an error:
Error using untar (line 84)
In 'MATLAB:untar:invalidTarFile', data type supplied is incorrect for parameter {1}.
Risposta accettata
Più risposte (1)
Mikhail
il 29 Feb 2016
1 voto
Unfortunately, it's not only "this specific file". I stumble on this exact problem with other tar files from time to time.
I would appreciate having 'untar' function that is more robust.
Categorie
Scopri di più su File Operations in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!