figure;
hold on;
for fileidx = 1:n
filedata = load(fullfile('C:\location\of\the\files', sprintf('data%d.mat', fileidx)));
plot(filedata.t, filedata.y);
end
would work. As long as you don't want to do anything else with the t and y
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!