
noMissingFiles=1;
allFiles=dir('*');
a = dir('*');
for i=1:length(a)
b{i} = a(i).name; % stores names of all files in directory in b;
end

 
em=strcmp(b,'energy_image.m'); 
if(~em)
    noMissingFiles=0;
    fprintf('missing file: energy_image.m\n');
end


cme=strcmp(b,'cumulative_minimum_energy_map.m');
if(~cme)
    noMissingFiles=0;
    fprintf('missing file: cumulative_minimum_energy_map.m\n');
end

fov=strcmp(b,'find_optimal_vertical_seam.m'); 
if(~fov)
    noMissingFiles=0;
    fprintf('missing file: find_optimal_vertical_seam.m\n');
end

foh=strcmp(b,'find_optimal_horizontal_seam.m');
if(~foh)
    noMissingFiles=0;
    fprintf('missing file: find_optimal_horizontal_seam.m\n');
end

ds=strcmp(b,'displaySeam.m');
if(~ds)
    noMissingFiles=0;
    fprintf('missing file: displaySeam.m\n');
end 
   
rh=strcmp(b,'reduceHeight.m');
if(~rh)
    noMissingFiles=0;
    fprintf('missing file: reduceHeight.m\n');
end

rw=strcmp(b,'reduceWidth.m');
if(~rw)
    noMissingFiles=0;
    fprintf('missing file: reduceWidth.m\n');
end

scrw=strcmp(b,'SeamCarvingReduceWidth.m');
if(~scrw)
    noMissingFiles=0;
    fprintf('missing file: SeamCarvingReduceWidth.m\n');
end

owp=strcmp(b,'outputReduceWidthPrague.png');
if(~owp)
    noMissingFiles=0;
    fprintf('missing file: outputReduceWidthPrague.png\n');
end

scrh=strcmp(b,'SeamCarvingReduceHeight.m');
if(~scrh)
    noMissingFiles=0;
    fprintf('missing file: SeamCarvingReduceHeight.m\n');
end


ohp=strcmp(b,'outputReduceHeightPrague.png');
if(~ohp)
    noMissingFiles=0;
    fprintf('missing file: outputReduceHeightPrague.png\n');
end

if(noMissingFiles)
    fprintf('No missing files\n');
end


