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

1 Ansicht (letzte 30 Tage)
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.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 13 Nov. 2015
Use a try/catch block.
  1 Kommentar
sai ram gubba
sai ram gubba am 13 Nov. 2015
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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Application Deployment finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by