How To find The x intercept

조회 수: 1 (최근 30일)
Nasir Holliday
Nasir Holliday 2020년 3월 6일
답변: Srivardhan Gadila 2020년 3월 9일
I;m trying to find all of the x intercepts of an ODE of my plot below.
This is my code
Fmax = 0.7e-9; rh = 0.97e-9; rt = 0.31e-9;
B = 1.4e-19; rs = 0.51e-9; G = 1.8e-11;
S = -1.0e-4; Vm=0.45; D = 5.0e-14;
Kb = 1.38e-23; T = 310.0;
r=[10E-10:1E-08:10E-07]
y1 = Vm*Vm*Fmax./(1.0+rh./(r+rt));
y2 = 4.0*B*(rs^4)./(r.^5);
y3 = -2.0*pi*G;
y4 = 2.0*pi*S*r;
m = D/(Kb*T);
drdt = m*(y1+y2+y3+y4);
figure
plot(r,drdt)
xlabel('R (nm)')
ylabel('dr/dt (nm with respect to time in seconds)')
legend('Vm=0.45')
How do I find the x-intercepts and how do I expand the range so I can see the entirety of the plot?
  댓글 수: 1
darova
darova 2020년 3월 7일
What about fsolve? polyxpoly?

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

답변 (1개)

Srivardhan Gadila
Srivardhan Gadila 2020년 3월 9일
Refer to Specify Axis Limits and specify the limits for X and Y axis.

카테고리

Help CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by