Resume script despite HTTP response code errors

I have a script that will attempt to read a set of URLs via webread() function. Some will result in HTML errors (404, 301, etc) which stop the script. How can I modify webread() or other functions to make it continue despite the errors, perhaps returning a simple empty matrix if encountered.

More Answers (1)

Categories

Find more on Environment and Settings in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!