From: Tesfaye Kebede on
Hi,

I have two variables y and z. These two variables are both a function of x and x ranges from 1 to 150. There is a fourth variable, time t.

I want to see an animated graph of y and z with time. And I want y to plot on the primary axis from bottom of the plot and +ve upwards and I want z to plot on the secondary axis from top of the plot in the reverse direction, +ve downwards. For one time step, this can be easily done in excel.

Can anyone give me a hint on how to do this in matlab?
Thanks,
Tesfaye




time series data of two variables.
I want to plot the two variables on two primary and secondary axes.
I want it this way.