How to plots the graphs with multiple y axes with one common x-axis?

1 visualización (últimos 30 días)
There i attached a plot. In this plot, with a common x-axis graphs had been plotted with repeatative data. Everytime for a new set data, y-axis is shifted by some fixed distance. This diagram is taken from a research paper (A.A. Ampadu-Mintah and M.F. Tachie, 2015). Please help me how to write a matlab code for these types of plots.
Thank You.

Respuesta aceptada

KALYAN ACHARJYA
KALYAN ACHARJYA el 18 de Sept. de 2019
Editada: KALYAN ACHARJYA el 18 de Sept. de 2019
Two y-axes
The graphs are seen as U/Ue vs y with different x values
See the following example, you might get some hints
x=[1 3 5];
u=0:.01:1;
for i=1:length(x)
y=u.^2+x(i);
plot(u,y);
hold on;
end
legend('x=1','x=2','x=3')
To set the axes limit, use xlim and ylim
Result:
Good Luck!
  2 comentarios
kalpana rajpoot
kalpana rajpoot el 20 de Sept. de 2019
Thank you vey much. It is very useful.
darova
darova el 20 de Sept. de 2019
KALYAN won't be paid without your accepting the answer

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by