%% 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 = ['https://www.mathworks.com/matlabcentral/fileexchange' ...
	   '?term=urlwrite'];
filename = 'samples.html';
urlwrite(fullURL,filename,'Timeout',5);

%% 
% Copyright 2012 The MathWorks, Inc.