Use of 'fzero' or 'fsolve' for function files which have two input variable?
Show older comments
Hi,
I have two function files: funpvsol(t,x) and funhsol(t,x) which gives the value of pressure and enthalpy respectively. These function files are based on nonlinear equations.
Now i have situation where I already know the pressure and enthalpy and have to calculate value of 't' and 'x', which are input to both the function files. So basically it is a problem of two nonlinear equations with two unknowns. In mathematical form:
P=f(t,x)........Eq.1 and h=f(t,x)........Eq.2 I know the value of 'P' and 'h'.
Can i use any of the matlab inbuilt functions such as 'fsolve' or 'fzero' to handle this situation?
P.S. i can not differentiate the equations as they have large no. of constants and have a series solution.
Thanks.
Answers (0)
Categories
Find more on Conversion in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!