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.

추가 답변 (1개)

Merrick
Merrick 2016년 2월 2일

0 개 추천

Seems to work so far. Thanks!

제품

질문:

2016년 2월 1일

답변:

2016년 2월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by