inputFolder = 'infolder';
outputFolder = 'outfolder';
for i = 1:99
%# Load data
inputFilename = sprintf('%s/%02d.mat', inputFolder, i);
load(inputFilename)
%# Process data
data = data * 10;
%# Savedata
outputFilename = sprintf('%s/%02d.mat', outputFolder, i);
save(outputFilename, 'data')
end