I dont know if its a good solution but my idea is to make following.
At the end of the code i define my ac, t_LP with the numbers from the file. In the outside the For Loop i have all my files seperatly defined an can plot them without any problems.
d = dir('*.mat');
Anzmat = length(d);
for j = 1:3 %just use the first 3 Files in the Order structure ->test 1, test 2, test 3
load(d(j).name)
%%%Calculations%%%%
assignin ('base',['x_ac_' num2str(j)], x_ac);
assignin ('base',['y_ac_' num2str(j)], y_ac);
assignin ('base',['t_LP_' num2str(j)], t_LP);
assignin ('base',['velocity_x_' num2str(j)], velocity_x_);
assignin ('base',['velocity_y_' num2str(j)], velocity_y_);
assignin ('base',['ac_' num2str(j)], ac);
end
hold on
plot(t_LP_1,x_ac_1)
plot(t_LP_2,x_ac_2)
plot(t_LP_3,x_ac_3)
hold off
.....
Does it have a better option to do this?