Why is the 'untar' function not working with URL, as shown in the example?

1 回表示 (過去 30 日間)
MathWorks Support Team
MathWorks Support Team 2016 年 2 月 23 日
回答済み: Mikhail 2016 年 2 月 29 日
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}.

採用された回答

MathWorks Support Team
MathWorks Support Team 2016 年 2 月 23 日
This is a bug due to a specific interaction between our 'untar' function and this specific file.
The 'untar' function should still be able to untar most files, and it also should be able to deal with remote connections.
Our developers are looking into the feasibility of releasing a patch addressing this issue.

その他の回答 (1 件)

Mikhail
Mikhail 2016 年 2 月 29 日
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.

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

製品


リリース

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by