www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/SpecifyTimeoutDurationExample.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=urlread'];
str = urlread(fullURL,'Timeout',5);