Monday, March 15, 2010

Load the matfiles as per iteration

I save the mat files as per iteration.
 This is handy just in case your program is killed.
For the post analysis, I wrote the following to load the .mat file/data.
It loads 1.mat...


for i = 1:18
    filename = [num2str(i)];
    load([filename '.mat'])
    disp('loaded')
    % do something useful
end

No comments: