You can add a pause after each plot
plot(time, temp)
xlabel({'Time','(minutes)'});
ylabel({'Temperature','(°C)'});
pause
plot(time2, temp2)
xlabel({'Time','(minutes)'});
ylabel({'Temperature','(°C)'});
Then you have to press a key to see the next plot.
Your label commands are fine.
The ; after plot just suppresses the output of the handle PLOT1, but not the plot.
If you don't want the plot, just remove the line, or put it in comment, or use something like
do_plot = true; % true or false
if do_plot
plot(time, temp)
end
if do_plot
plot(time2, temp2)
end
You could also overwrite the plot function with clf, e.g., in case you do not want any plots. Then you do not have to surround your plot commands with "if do_plot... end"; but this is kind of a hack, I guess:
if do_plot
clear plot % restore original plot command
else
plot = @(varargin) clf;
end
plot(time, temp)
plot(time2, temp2)
