MATLAB Answers

0

Graph each side of the equation

Asked by Zainab Alabdulali on 30 Sep 2019
Latest activity Answered by Akira Agata
on 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 Comments

Sign in to comment.

2 Answers

Answer by Akira Agata
on 30 Sep 2019
 Accepted Answer

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

  0 Comments

Sign in to comment.


Answer by Sulaymon Eshkabilov on 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 Comments

Sign in to comment.