MATLAB Answers


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

Asked by kalpana rajpoot on 18 Sep 2019 at 10:57
Latest activity Commented on by darova
on 20 Sep 2019 at 10:43
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.


Sign in to comment.

1 Answer

Answer by KALYAN ACHARJYA on 18 Sep 2019 at 11:00
Edited by KALYAN ACHARJYA on 18 Sep 2019 at 11:26
 Accepted Answer

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];
for i=1:length(x)
hold on;
To set the axes limit, use xlim and ylim
Good Luck!


Thank you vey much. It is very useful.
KALYAN won't be paid without your accepting the answer

Sign in to comment.