www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/CreateZipArchiveofWebPageExample.m
%% Create Zip Archive of Web Page % Create a zip archive of a Web page. %% % Locate the list of files at the MATLAB(R) Central File Exchange uploaded % within the past 7 days, that contain "Simulink." filex = 'http://www.mathworks.com/matlabcentral/fileexchange/'; params = {'duration','7','term','simulink'}; %% % Save the Web content to a file. urlwrite(filex,'contains_simulink.html','get',params); %% % Create a zip archive of the retrieved Web page, using the |zip| function. % |zip| creates a zip archive named |simulink_matches.zip| that contains % the file, |contains_simulink.html|. zip('simulink_matches.zip','contains_simulink.html');