Wednesday, November 9, 2011

Load matfiles


Load the required files from a directory


clc
matDIR = '/.../matfiles/';
% workDIR = '/Volumes/3TB/.../AquaLand20/';
files = dir(matDIR);

% Remove the '.DS_Store' from the list
if strcmp(files(3).name, '.DS_Store')
files(3) = [];
end


% count =3;
row = 1;
for count= 3:length(files)

FNamebase=files(count).name;

inDIR =[matDIR, FNamebase];

if exist(inDIR)>0

load([inDIR ]);
time(row) = toc;
iter(row) = j-1;

disp(['Loaded! ',FNamebase]);

row = row+1
end
end

No comments: