How to Merge two graphs?
26 ビュー (過去 30 日間)
古いコメントを表示
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
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
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.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Graph and Network Algorithms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!