how to merge twovgraphs

4 views (last 30 days)
Good evening sir
i have two graphs with different x and y axes. i want to merge two graphs.i have tried alot but i could not fix it.so please help me anyone how to merge two graphs. the graphs are below
I request you sir please help me anyone .Thank you

Accepted Answer

Rohit Kulkarni
Rohit Kulkarni on 5 Jul 2022
Edited: Rohit Kulkarni on 5 Jul 2022
You can check out this documentation for plotting both graphs together: Display Data with Multiple x-Axes and y-Axes.
  3 Comments
mallela ankamma rao
mallela ankamma rao on 6 Jul 2022
Thanks alot for your help sir

Sign in to comment.

More Answers (1)

Kapil Kumar
Kapil Kumar on 5 Jul 2022
Did you tried using 'hold on' after plotting first graph?
If not,
write 'hold on' after plotting first graph and then after plotting second graph write 'hold off'
  1 Comment
mallela ankamma rao
mallela ankamma rao on 5 Jul 2022
by combining these two graphs i need like below graph sir

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!