MATLAB Answers


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

MathWorks Support Team さんによって質問されました 2016 年 2 月 23 日
最新アクティビティ Jeffrey Markowitz さんによって コメントされました 2017 年 4 月 12 日
When I attempt to run the script from the 'untar' documentation:
That is:
>> url ='';
>> 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}.

2 件の回答

回答者: 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.

  0 件のコメント

サインイン to comment.

回答者: 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.

  1 件のコメント

I'm seeing the same thing, MATLAB's untar often fails where unix tar called through system doesn't.

サインイン to comment.

Translated by