error in websave function

15 ビュー (過去 30 日間)
yogita
yogita 2016 年 6 月 4 日
回答済み: Cris LaPierre 2018 年 11 月 23 日
Hello I am getting error at websave function
  2 件のコメント
Walter Roberson
Walter Roberson 2016 年 6 月 4 日
Please post the entire text of the error message, everything in red.
Mites Rajan
Mites Rajan 2018 年 6 月 6 日
編集済み: Walter Roberson 2018 年 6 月 9 日
Error using websave (line 98)
The connection to URL 'https://www.cs.toronto.edu/~kriz/cifar-10-matlab.tar.gz' timed out after 5
seconds. Set options.Timeout to a higher value.
Error in DownloadCIFAR10 (line 13)
websave([cifar10Dataset,'.tar.gz'],...

サインインしてコメントする。

回答 (1 件)

Cris LaPierre
Cris LaPierre 2018 年 11 月 23 日
I'd suggest doing what it suggests - increase the timeout to a higher value. I just ran this on my computer and was able to save the file, thought it took ~30 seconds.
websave('data.tar.gz','https://www.cs.toronto.edu/~kriz/cifar-10-matlab.tar.gz')
You can use weboptions to modify it.
Interestingly, when I checked, my timeout was also set to 5 but was able to download just fine. Do you have a firewall that is perhaps blocking you from accessing this?

カテゴリ

Help Center および File ExchangeWeb Services についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by