MATLAB: Create plot with two different y axis

axisfigureMATLABplot

Hi,
I have a plot for two different time series which both must be shown in the same figure. the problem is now, that for one dataseries, the y axis should be from 1000 to 1500 and for the other from 20 to 50, how can I do that?

Best Answer

you can use plotyy function
plotyy(x,y1,x,y2)