MATLAB: Plotting multiple graphs in one plot.

multiple graphs

I have a plot of the change of the temperature variations from 2014-2013 for different altitudes. let's say I have it for 10 different altitudes. How do I plot them in the same graph. In the pdf I have attached you will see 2 figures. I want to construct the plot in the figure 1 from similar plots like in the figure 2. How would I do that.

Best Answer

Hi,
it seems that you just want to do some subplots :
t = 0:0.01:10;
a1 = cos(t);
a2 = sin(t);
figure;
subplot(2,1,1) % first plot
plot(t,a1)
subplot(2,1,2) % second plot
plot(t,a2)
so each data is plotted in a separated axe.