www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/SpecifyTimeoutDurationForUrlWriteExample.m
%% Specify Timeout Duration % Download content from a page on the MATLAB(R) Central File Exchange as % in the first example, and specify a timeout duration of 5 seconds. fullURL = ['http://www.mathworks.com/matlabcentral/fileexchange' ... '?term=urlwrite']; filename = 'samples.html'; urlwrite(fullURL,filename,'Timeout',5);