MATLAB Answers

0

How do you find the intersection points of two functions?

Asked by diadalina on 10 Nov 2019 at 23:16
Latest activity Answered by Star Strider
on 10 Nov 2019 at 23:51
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

  0 Comments

Sign in to comment.

Tags

1 Answer

Star Strider 님의 답변 10 Nov 2019 23:51

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.

  0 Comments

Sign in to comment.