필터 지우기
필터 지우기

I WANT To fix my graphic to increase

조회 수: 1 (최근 30일)
sevgul demir
sevgul demir 2021년 11월 4일
댓글: sevgul demir 2021년 11월 5일
i have 3 libe which i draw as like combine.
i am triying to make alll 3 lines start from same point and increase .
If you see the handwrite graph which i want to get is that.
and this graph what got output. how can i make it similar with hand writing graph

답변 (1개)

Dave B
Dave B 2021년 11월 4일
Could you just subtract the first value?
y1=linspace(0,.5,100);
y2=sqrt(linspace(0,1,100))+.5;
y3=linspace(-.5,.8,100).^3+2;
nexttile
plot(y1,'g')
hold on
plot(y2,'r')
plot(y3,'b')
grid on
nexttile
plot(y1-y1(1),'g')
hold on
plot(y2-y2(1),'r')
plot(y3-y3(1),'b')
grid on
ylim([-.5 1])
yline(0)
text(100,y1(end)-y1(1),"Vohm",'Color','g')
text(100,y2(end)-y2(1),"Vact",'Color','r')
text(100,y3(end)-y3(1),"Vout",'Color','b')
  댓글 수: 8
sevgul demir
sevgul demir 2021년 11월 5일
In fact, mathematically formulas exist in the codes, while 3 graphs are correct separately, but when I try to draw them together, it is not correct. Theoretically v_out=v_act+v_ohm . but the graph we have does not show this.
sevgul demir
sevgul demir 2021년 11월 5일
keeping tweaking those functions and get same may possible but i cant fixed it next time for other equation

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

카테고리

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

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by