![fzero.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/240456/fzero.png)
Graph each side of the equation
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Zainab Alabdulali
am 30 Sep. 2019
Beantwortet: Akira Agata
am 30 Sep. 2019
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 Kommentare
Akzeptierte Antwort
Akira Agata
am 30 Sep. 2019
% fnc = (left side) - (right side)
fnc = @(x) 4.231*x - exp(-0.17232465*x);
% Visualize the fnc
figure
fplot(fnc)
![fzero.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/240456/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
0 Kommentare
Weitere Antworten (1)
Sulaymon Eshkabilov
am 30 Sep. 2019
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 Kommentare
Siehe auch
Kategorien
Mehr zu Calculus finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!