%% Extract Tar File to New Folder
% Create a tar file, and then extract it to the folder backup.
% Create a tar file of all the program files in the current folder.

tar('myfiles.tar.gz',{'*.m','*.mlx'});

%
% Extract myfiles.tar.gz to the folder backup.

programFiles = untar('myfiles','backup')

% Copyright 2012 The MathWorks, Inc.