matlab has to skip urlread if connection is timed out. Is it possible??

I am using urlread function to input data into a server through a php link. But sometimes the network may not work and data doesn't get uploaded which is not a problem for me. I can consider it as missing but the problem is if connection takes too long simulation stops suddenly. That should not happen. Matlab should continue without error of connection timed out.

 채택된 답변

Walter Roberson
Walter Roberson 2015년 11월 13일

0 개 추천

Use a try/catch block.

댓글 수: 1

Yeah. you are right. probably a stupid question but I had no idea try catch block exists in matlab as well. Thank you for the help.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

질문:

2015년 11월 13일

댓글:

2015년 11월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by