How to find intersection of two curves

2 ビュー (過去 30 日間)
BINAY NAYAK
BINAY NAYAK 2022 年 3 月 27 日
回答済み: Torsten 2022 年 3 月 27 日
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 Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by