Graph each side of the equation

2 ビュー (過去 30 日間)
Zainab Alabdulali
Zainab Alabdulali 2019 年 9 月 30 日
回答済み: Akira Agata 2019 年 9 月 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?

採用された回答

Akira Agata
Akira Agata 2019 年 9 月 30 日
How about using fzero function? The following is an example:
% fnc = (left side) - (right side)
fnc = @(x) 4.231*x - exp(-0.17232465*x);
% Visualize the fnc
figure
fplot(fnc)
fzero.png
Since it has a root between -5 ~ +5:
x0 = fzero(fnc,[-10 10]);
Then, the root is found to be:
>> x0
x0 =
0.2273

その他の回答 (1 件)

Sulaymon Eshkabilov
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.

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by