MATLAB: How to suppresses the display of error messages with urlwrite

MATLABurlwrite

>> url_img
url_img =
http://satelite.cptec.inpe.br/repositorio9/goes12_met9/goes12_met9_web/ams_afc_alta_jpg/2010/03/S11868143_201003010600.jpg
>> [filestr,status] = urlwrite(url_img);
??? Error using ==> urlwrite at 39
Not enough input arguments.

Best Answer

I think the best is to fix your command.
the minimum usage of urlwrite is:
[filestr,status]=urlwrite(URL,filename)
so, it seems that filename=S11868143_201003010600.jpg and URL=http://satelite.cptec.inpe.br/repositorio9/goes12_met9/goes12_met9_web/ams_afc_alta_jpg/2010/03/
Then check status to see if you got any error.
By the way, that file on that URL seems not to be available anyhow.