%% Extract Zip File to New Folder
% Create a zip file and extract it to the folder archive.
% Create the zip file examples.zip containing example MAT-files.

zip('examples.zip','*.mat',...
    fullfile(matlabroot,'toolbox','matlab','demos'))

%
% Extract examples.zip to the folder archive.

exampleFiles = unzip('examples.zip','archive')

% Copyright 2012 The MathWorks, Inc.