problem with opening a 'ftp' link in Matlab

I am trying to open "ftp://sidads.colorado.edu/pub/DATASETS/nsidc0032_ease_grid_tbs/global/2013" with ftp function. This link does not need user and pass. It fails. Any help?

 採用された回答

Thorsten
Thorsten 2015 年 10 月 15 日

0 投票

f = ftp('sidads.colorado.edu')
data = mget(f, 'pub/DATASETS/nsidc0032_ease_grid_tbs/global/2013');

3 件のコメント

Farz Tak
Farz Tak 2015 年 10 月 15 日
That perfectly worked, Thank you. i am just wondering why? Is there any special way of writing the link (excluding some parts?)?
Thorsten
Thorsten 2015 年 10 月 15 日
You first connect, and then get the data. That is the usual procedure. Otherwise you would need to establish a connection for every data set you want to download. For further information, check
help ftp
Farz Tak
Farz Tak 2015 年 10 月 15 日
Thank you.

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品

タグ

質問済み:

2015 年 10 月 15 日

コメント済み:

2015 年 10 月 15 日

Community Treasure Hunt

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

Start Hunting!

Translated by