Guaranteed yahoo/fetch

バージョン 1.0.0.0 (1.39 KB) 作成者: Erik Larsson
Ensures you get the data you want.
ダウンロード: 3.2K
更新 2004/6/3

ライセンスがありません

As it is shipped, yahoo/fetch does not guarantee that you get the data you request (it might throw a FileNotFoundException in your face). Sometimes the data you want simply isn't to be found on yahoo, and you will have to run fetch 10 times or more, which makes it worthless if you want to run batch jobs. This little extension takes care of that (you can run fetch ONCE and it will "wait" until the data is available).

Download the latest version of yahoo/fetch (http://www.mathworks.com/support/solutions/data/37658.html). Extract EURL.class from fetch.zip to FETCH (a directory of your choice, e g c:/matlabfix).

In the commandwindow, type edit classpath.txt and add FETCH (your directory from above) as a separate row.

Edit fetch.m in your working directory. Change line 278 (or search for "is = www.openStream") to:

fix = EURL(www);
is = fix.openStream;

Now simply restart matlab (to let the changes to classpath.txt take effect) and run fetch exactly as before.

引用

Erik Larsson (2024). Guaranteed yahoo/fetch (https://www.mathworks.com/matlabcentral/fileexchange/5049-guaranteed-yahoo-fetch), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R12
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersWeb Services についてさらに検索
謝辞

ヒントを与えたファイル: Yahoo! Finance Data Loader

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0