# ZIPproject

## PURPOSE

ZIPproject - create a zip file of the project

## SYNOPSIS

This is a script file.

## DESCRIPTION

     ZIPproject - create a zip file of the project

## CROSS-REFERENCE INFORMATION

This function calls:

This function is called by:

## SOURCE CODE

    0001 % ZIPproject - create a zip file of the project
    0002
    0003 zipfilename = 'AER.zip';
    0004
    0005 %% specify files to put in ZIP
    0006 filelist = {};
    0007 count = 1;
    0008
    0009 % .m files in current folder
    0010 names = dir('*.m');
    0011 for i = 1:length(names)
    0012     filelist{count} = sprintf('%s',names(i).name);
    0013     disp([num2str(count) ': added ' filelist{count}]);
    0014     count = count + 1;
    0015 end
    0016
    0017 % .c files in current folder
    0018 names = dir('*.c');
    0019 for i = 1:length(names)
    0020     filelist{count} = sprintf('%s',names(i).name);
    0021     disp([num2str(count) ': added ' filelist{count}]);
    0022     count = count + 1;
    0023 end
    0024
    0025 % .cpp files in current folder
    0026 names = dir('*.cpp');
    0027 for i = 1:length(names)
    0028     filelist{count} = sprintf('%s',names(i).name);
    0029     disp([num2str(count) ': added ' filelist{count}]);
    0030     count = count + 1;
    0031 end
    0032
    0033 % .h files in current folder
    0034 names = dir('*.cpp');
    0035 for i = 1:length(names)
    0036     filelist{count} = sprintf('%s',names(i).name);
    0037     disp([num2str(count) ': added ' filelist{count}]);
    0038     count = count + 1;
    0039 end
    0040
    0041 % .m files in common folder
    0042 names = dir('common/*.m');
    0043 for i = 1:length(names)
    0044     filelist{count} = sprintf('common/%s',names(i).name);
    0045     disp([num2str(count) ': added ' filelist{count}]);
    0046     count = count + 1;
    0047 end
    0048
    0049 % .c files in common folder
    0050 names = dir('common/*.c');
    0051 for i = 1:length(names)
    0052     filelist{count} = sprintf('common/%s',names(i).name);
    0053     disp([num2str(count) ': added ' filelist{count}]);
    0054     count = count + 1;
    0055 end
    0056
    0057 % the training image for angle shape motif
    0058 names = dir('common/angle1.png');
    0059 for i = 1:length(names)
    0060     filelist{count} = sprintf('common/%s',names(i).name);
    0061     disp([num2str(count) ': added ' filelist{count}]);
    0062     count = count + 1;
    0063 end
    0064
    0065 % image folder
    0066 folder = 'image';
    0067 filelist{count} = folder;
    0068 disp([num2str(count) ': added ' filelist{count}]);
    0069 count = count + 1;
    0070
    0071 imFolder = 'image/pelican';
    0072 names = dir(sprintf('%s/*'));
    0073 for i = 1:length(names)
    0074     if names(i).name(1) ~= '.'
    0075         filelist{count} = sprintf('%s/%s',imFolder,names(i).name);
    0076         disp([num2str(count) ': added ' filelist{count}]);
    0077         count = count + 1;
    0078     end
    0079 end
    0080
    0081 % negative images
    0082 imFolder = 'image/neg';
    0083 names = dir(sprintf('%s/*'));
    0084 for i = 1:length(names)
    0085     if names(i).name(1) ~= '.'
    0086         filelist{count} = sprintf('%s/%s',imFolder,names(i).name);
    0087         disp([num2str(count) ': added ' filelist{count}]);
    0088         count = count + 1;
    0089     end
    0090 end
    0091
    0092 % templatep parameters
    0093 names = dir('template_params.mat');
    0094 for i = 1:length(names)
    0095     filelist{count} = sprintf('%s',names(i).name);
    0096     disp([num2str(count) ': added ' filelist{count}]);
    0097     count = count + 1;
    0098 end
    0099 names = dir('common/template_params.mat');
    0100 for i = 1:length(names)
    0101     filelist{count} = sprintf('common/%s',names(i).name);
    0102     disp([num2str(count) ': added ' filelist{count}]);
    0103     count = count + 1;
    0104 end
    0105
    0106 % documentation
    0107 folder = 'document/manual';
    0108 filelist{count} = folder;
    0109 disp([num2str(count) ': added ' filelist{count}]);
    0110 count = count + 1;
    0111
    0112 %% zip
    0113 zip(zipfilename,filelist,pwd);
    0114