download files from ftp by matlab scripts.

I have write a loop to download files form ftp.And I want to know how to continue the loop in matlab if the ftp server can't be connected ?
Thanks!

 採用された回答

Walter Roberson
Walter Roberson 2012 年 11 月 7 日

0 投票

together with the ftp() command. Also look at try/catch

2 件のコメント

Chen chen
Chen chen 2012 年 11 月 7 日
Thanks! It's worked.
Chen chen
Chen chen 2012 年 11 月 15 日
I have another problem. If the ftp server disk is broken, I can connect but can't receive data, and the script will be paused. Do you have any method or code to avoid it?

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeDownloads についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by