How do you find the intersection points of two functions?

3 ビュー (過去 30 日間)
diadalina
diadalina 2019 年 11 月 10 日
回答済み: Star Strider 2019 年 11 月 10 日
i have A=10+0.5*n;
P=8*exp(1.02*n) where n=1:110
i want to find the point when P>A ,numerically and graphically

回答 (1 件)

Star Strider
Star Strider 2019 年 11 月 10 日
It is straightforward to show that P>A for the entirety of ‘n’.
They do not ever intersect:
n=1:110;
A=10+0.5*n;
P=8*exp(1.02*n);
Out = P(P>A); % Desired Result
figure
plot(n, A, n, P)
grid
ylim([min(A) max(A)])
They would intersect at 0 if ‘n’ was allowed to have any negative values, and was continuoous.

カテゴリ

Help Center および File ExchangeSmoothing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by