How to find intersection of two curves

2 次查看(过去 30 天)
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)

回答(1 个)

Torsten
Torsten 2022-3-27
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)

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by