Calculate values for a variable of an implicit function

37 views (last 30 days)
Hi,
I am new at Matlab and I'm trying to extract values of variable y in the given implicit function when I feed it with different values for the parameters : f , r , a.
For example f=0.2 r=0.41 a=0.08
The function is : a=atan(-f*y/(f^2+(1-r)^2-y^2/4)) .
I tried the fzero but it doesn't work probably because I'm not using it correctly.
I would really appreciate any kind of help.
Thanks in advance.
PS.

Answers (1)

Devineni Aslesha
Devineni Aslesha on 19 May 2020
Hi Plato
To calculate the values for a variable of an implicit function, use the below code.
f=0.2;
r=0.41;
a=0.08;
syms y
eqn = a - atan(-f*y/(f^2+(1-r)^2-y^2/4)) == 0;
yVal = vpasolve(eqn,y);
For more information, refer the following link.

Community Treasure Hunt

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

Start Hunting!