Borrar filtros
Borrar filtros

How to figure out percentage change in time series?

2 visualizaciones (últimos 30 días)
SONI SONI
SONI SONI el 4 de Oct. de 2015
Comentada: Image Analyst el 7 de Oct. de 2015
I have time series values (monthly/annual/seasonal) of coefficient value (S) and A. I want to make a plot, where x axis (A) and y axis (S) limit will be varying between -20 to +20 in percentage. figure will demonstrate, If coefficient (S) is 1.5, than 10% increase of A would cause a 15% in crease in A. How will I make this figure?
  3 comentarios
SONI SONI
SONI SONI el 7 de Oct. de 2015
To better understand I attached a figure. please see.
Image Analyst
Image Analyst el 7 de Oct. de 2015
I'm not sure now what you want. What do you want? You have the data (S and A), right? So just use plot() and let the axes adjust automatically. What's the problem?

Iniciar sesión para comentar.

Respuestas (1)

Image Analyst
Image Analyst el 4 de Oct. de 2015
Your figure did not get attached.
What's wrong with letting the axes determine the limits? If you want constant limits, then you can call xlim() and ylim() to set them in advance. Put "hold on" so that when you plot again, it will keep those limits. Or else call xlim() and ylim() with fixed limits after you call plot().
  1 comentario
SONI SONI
SONI SONI el 4 de Oct. de 2015
Just for example I wrote -20 to +20. here I attached a figure. I want to plot similar type of figure.

Iniciar sesión para comentar.

Categorías

Más información sobre Two y-axis en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by