In my program, I want to get three plots ,
plot(CumulativeReward)
title('Cumulative Reward, gamma=1');
xlabel('episode number');
ylabel('CumulativeReward')
plot(Pathlength)
title('pathlength as a function of episode number');
xlabel('episode number');
ylabel('pathlength')
x = -pi:.1:pi;
y = sin(x);
plot(x,y)
but all three plots are together in one frame, how can I put each plot in different frame box?
Call
figurebefore callingplot. This will open a new figure window.In order to more easily distinguish the windows, you can set their title, for example
If you want plots side-by-side, you can use
subplot, i.e.