I am trying to solve two equations with two unknowns in MATLAB, given a matrix of values to solve for.
For example, My flowrate is Q = 0:5:80
The two equations are:
1) Q = Q1 + Q2 (Easy equation)
2) f6*(L6/D6)*(V6^2/(2*g))......
Equation 2 is long. What I need to do though, without writing out the equation in longform, is to keep Q1 and Q2 as variables, instead of defining them as something.
For example: f6 is a function of Re... which along with V6 is a function of Q2. I do not know what Q2 is since I am trying to solve for it.. Similarily the same thing with Q3.
How can I define Re, V6, f6, etc... so I can use them in the equation 2 above and solve for Q2 and Q3?
This sounds totally confusing and I apologize.
Thanks for your help!
Comments
I am confident there is a way to do this, I just can not seem to find out how.
I will give the fzero function a shot though.
Thanks!