% 
% Add a prefix to all *.jpg files on the current directory
%
function [new_files] = rename_files( prefix )
    files = dir('*.jpg');
    new_files = files;
    n_files = size(files,1);
    for k = 1:n_files
       new_files(k).name = [prefix files(k).name];
       movefile(files(k).name, new_files(k).name);
    end    
end