Filter löschen
Filter löschen

How To find The x intercept

5 Ansichten (letzte 30 Tage)
Nasir Holliday
Nasir Holliday am 6 Mär. 2020
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 Kommentar
darova
darova am 7 Mär. 2020
What about fsolve? polyxpoly?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Srivardhan Gadila
Srivardhan Gadila am 9 Mär. 2020
Refer to Specify Axis Limits and specify the limits for X and Y axis.

Kategorien

Mehr zu Line Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by