solve non-linear equation
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Fernando Robert Ferrel Ballestas
am 20 Mär. 2023
Bearbeitet: Matt J
am 20 Mär. 2023
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 Kommentare
Akzeptierte Antwort
David Hill
am 20 Mär. 2023
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 Kommentare
Siehe auch
Kategorien
Mehr zu Oceanography and Hydrology 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!