Hi,
you can use the subplot function, so you can create two axes and plot one variable in each.
t = 0:.01:10;
subplot(2,1,1)
plot(t,cos(t));
subplot(2,1,2)
plot(t,exp(t));
or you can also use plotyy
plotyy(t,cos(t),t,exp(t))
Note : if you want to create a new axe then you have to use the command axes(), but then you need to specify the properties of your axes, which is a bit more complicated.
