MATLAB Answers

How to Merge two graphs?

241 views (last 30 days)
sunil Patil
sunil Patil on 19 Dec 2017
Commented: Walter Roberson on 19 Dec 2017
Hello, I have two graphs 1)Tensile Stress(Y-Axis) v/s Strain(X-Axis) 2)Fatigue Stess(Y-Axis) v/s Number of Cycle(X-Axis) and I need to merge them so i get Fatigue stress(Y-Axis) v/s Tensile Stress(X-Axis) need basic programme

  1 Comment

Walter Roberson
Walter Roberson on 19 Dec 2017
Do you have the data available in variables? If not then do you have .fig files of the plots that the data can be extracted from? Or do you just have images showing plots of the data?

Sign in to comment.

Answers (1)

KL on 19 Dec 2017
You can use hold to hold the current graph on the plot and keep plotting on the same axis unless you remove the hold.
hold on
hold on
then you might also want to use legend to identify each line.


Sign in to comment.

Sign in to answer this question.