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!

 采纳的回答

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

2 个评论

Thanks! It's worked.
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 Exchange 中查找有关 Downloads 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by