필터 지우기
필터 지우기

How to sum two y axis data

조회 수: 3 (최근 30일)
davit petraasya
davit petraasya 2016년 1월 25일
댓글: Walter Roberson 2017년 3월 22일
Hello
I have done 2 plots(see attached files) Now I need to sum my the 2 curves in one graph. As a result it should be one curve with y axis values added to each other. Such as in the year 45 1 graph y value 87,2 graph y value 80. So my new value should appear as 167.
Thanks a lot!

채택된 답변

Walter Roberson
Walter Roberson 2016년 1월 25일
It appears to me you only need a single y axes as the two plots appear to have the same range. To get two line plots on the same axes,
plot(....) %draw the first one
hold on
plot(....) %draw the second one
hold off
  댓글 수: 11
raj das
raj das 2017년 3월 22일
Can you please give me soon the full code? I also have same problem and want it urgently. Will be waiting for yours reply. Thank you.
Walter Roberson
Walter Roberson 2017년 3월 22일
davit petraasya is probably not following this topic any longer, as it is a year old.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by