フィルターのクリア

MATLAB urlread cannot determine file status if they exist

1 回表示 (過去 30 日間)
Poulomi Ganguli
Poulomi Ganguli 2023 年 6 月 24 日
編集済み: DGM 2023 年 6 月 25 日
Hello:
I am using urlread function to check if particular file exists in a web-page. I have used the following command:
[~, Status] = urlread('https://www.ncei.noaa.gov/data/global-summary-of-the-day/access/1981/01001099999.csv')
Even if the file exists in the webpage, 'https://www.ncei.noaa.gov/data/global-summary-of-the-day/access/1981/', the Status shows 0. Webread cant give the file status. Kindly help!
  4 件のコメント
Poulomi Ganguli
Poulomi Ganguli 2023 年 6 月 25 日
earlier was using old version. Now, its working with 2022b.
DGM
DGM 2023 年 6 月 25 日
編集済み: DGM 2023 年 6 月 25 日
It works for me in R2019b. If you're trying to do certain things in very old versions, you may find that either some certs or java settings are out of date.
The way urlread() is called silenced any error messages, so we're blind as to why it was failing. If it's still necessary to try troubleshooting, it would help to know what version that was and what the suppressed error message is. If you call urlread() fewer than two outputs, it will dump an error message.

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

回答 (0 件)

カテゴリ

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