필터 지우기
필터 지우기

How to Merge two graphs?

조회 수: 34 (최근 30일)
sunil Patil
sunil Patil 2017년 12월 19일
댓글: Walter Roberson 2017년 12월 19일
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
Walter Roberson
Walter Roberson 2017년 12월 19일
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?

댓글을 달려면 로그인하십시오.

답변 (1개)

KL
KL 2017년 12월 19일
You can use hold to hold the current graph on the plot and keep plotting on the same axis unless you remove the hold.
plot(strain,tstress)
hold on
plot(tstress,fstress)
...
hold on
then you might also want to use legend to identify each line.

카테고리

Help CenterFile Exchange에서 Directed Graphs에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by