How to use Fsolve with multiple variables
726 views (last 30 days)
Hi. I am trying to solve two non-linear equations using fsolve. Here are my two codes:
G=[H-(x(2)/mu).*(cosh(mu.*(x(1)+p)/x(2))-cosh(mu.*x(1)/x(2))); %function G defines a vector of two functions to be solved
function F = tethsolve3(p,H,L);
I want the second one (tethsolve3) to get three inputs p, H, L (which will be used as constants) and solve the first function (Teth3) which is a function of x(vector of 2 variables) and p,H,L. I don't know what format I should use for the Fsolve. Please advise. Thank you very much.
More Answers (4)
Manuela Gräfe on 24 Apr 2017
Hello umme mumtahina,
please send me an personal message. I am also interested in the solutions of your questions.
Sometimes you just write: "Got it!", but you don't give the final solution. Due to the fact, that this is a public community, you should provide the corresponding answers to your questions.
So please send me ASAP a personal message.
GUANGHE HUO on 21 Jan 2022
Edited: Walter Roberson on 21 Jan 2022
global alpha_tspd alpha_trpd beta_d R_pd R_sd Rb_sd T_in
Hi, above are my code, every time I need to change some variables, but when I run, it shows that no solutions found, fsolve stopped because the last step was ineffective. However, the vector of function
values is not near zero, as measured by the value of the function tolerance.
I do not know why, can someone help me?