How to find intersection of two curves

2 views (last 30 days)
BINAY NAYAK
BINAY NAYAK on 27 Mar 2022
Answered: Torsten on 27 Mar 2022
Here is the code. I want to find intersection of this two plot
T = 250:0.1:500;
qg = 1.09.*10^16.*exp(-7550./T)./(1+1.34.* 10^9.*exp(-7550./T));
qr = 5.9.* 10^4.*T-1.82.* 10^7;
plot(T,qg)
hold on
plot(T,qr)

Answers (1)

Torsten
Torsten on 27 Mar 2022
T = 250:0.01:500;
qg = 1.09.*10^16.*exp(-7550./T)./(1+1.34.* 10^9.*exp(-7550./T));
qr = 5.9.* 10^4.*T-1.82.* 10^7;
idx = ((qg(1:numel(qg)-1)-qr(1:numel(qr)-1)).*(qg(2:numel(qg))-qr(2:numel(qr))))<=0;
T(idx)

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!