
Graph each side of the equation
조회 수: 2 (최근 30일)
이전 댓글 표시
4.231r=e^(-0.17232465r)
How to find r value? The soultion should be the point of intersection but, how to graph each side using MATLAB?
댓글 수: 0
채택된 답변
Akira Agata
2019년 9월 30일
% fnc = (left side) - (right side)
fnc = @(x) 4.231*x - exp(-0.17232465*x);
% Visualize the fnc
figure
fplot(fnc)

Since it has a root between -5 ~ +5:
x0 = fzero(fnc,[-10 10]);
Then, the root is found to be:
>> x0
x0 =
0.2273
댓글 수: 0
추가 답변 (1개)
Sulaymon Eshkabilov
2019년 9월 30일
Hi
To find the value of r use: solve() in symbolic math or write a small code with the Newton Raphson method.
To plot bothe side of the equation, use a certain range of r and then plot.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Calculus에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!