Plot with a lag, Part 2
Mostrar comentarios más antiguos
"Suppose I want to have plot of lagged x and y that belong in table T. For example, I want to have a plot that the first element of T.x is paired with second element of T.y, the second element of T.x is paired with the third element of T.y, etc. Please advise."
Now I would like to generalize the question as follows:
Suppose I have x,y,z all belong in table T. I want to have a plot of x and y, and with hold on, a plot of x and z one period push ahead (for example, x in 2016 and z in 2015 are paired.)
Please advise.
1 comentario
Walter Roberson
el 8 de Jun. de 2018
What can you use to determine which period data is in?
You mention years, which hints you might have dates. If so then what do you want to do about leap years?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!