solve non-linear equation
3 次查看(过去 30 天)
显示 更早的评论
Hello everybody,
I have an equation having the following form:
G = e^(-z)+ pho*e^(L-2z); with pho, G and L constant. I would like to find the z value. Could you suggest me a function to implement a code for solving my equation?
Thank you in advance
Fernando.
0 个评论
采纳的回答
David Hill
2023-3-20
Use fzero
eqn=@(z)exp(-z)+pho*exp(L-2*z)-G;%you could plot the function to find the approximate location of the root
z=fzero(eqn,0)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Oceanography and Hydrology 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!