webread exiting because of bad internet connection - how to continue the program automatically
1 view (last 30 days)
Show older comments
I am using webread to read data from an API. I have around 5000 links that I need to process. And my internet connection drops very often.
When the connection drops, my program exits saying, The IP address of "api.xyz.com" could not be determined.
then I have to run the code again. But how can I do this automatically. I want the code to just retry on its own instead of exiting completely.
please help!
0 Comments
Accepted Answer
dpb
on 23 Jun 2018
See the section on Exception Handling in the documentation...specifically,
doc try
doc catch
2 Comments
More Answers (0)
See Also
Categories
Find more on Web Services in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!