Borrar filtros
Borrar filtros

How to find intersection of two curves

5 visualizaciones (últimos 30 días)
BINAY NAYAK
BINAY NAYAK el 27 de Mzo. de 2022
Respondida: Torsten el 27 de Mzo. de 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)

Respuestas (1)

Torsten
Torsten el 27 de Mzo. de 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)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by