Solving two equations with two unknowns
Afficher commentaires plus anciens
hey
I'm trying to solve 2 equations with 2 unknowns using MATLAB
the equations are:
Q1=(q1max*K1*C1(i))/(1+(K1*C1(i))+(K2*C2(i)))
Q2=(q2max*K2*C2(i))/(1+(K1*C1(i))+(K2*C2(i)))
the constants to determine are: K1 and K2?
the data are:
C1=[0 4.67 11.68 14.75 15.398 31.02 81.89 ];
C2=[0 14.61 21.07 57.52 86.77 136.16 186.49];
q1max=189.8;
q2max=638.4;
please I need your help
Réponses (1)
Walter Roberson
le 26 Jan 2012
0 votes
You cannot index an array at the imaginary constant, i, sqrt(-1) . In MATLAB, "i" is the imaginary constant unless you change it.
If you were to assign a different value to i, an index in the range 1 to 7, and solve, then you would get the answer K1=0 and K2=0 if your notation above for Q1 and Q2 is assignment. If Q1 and Q2 are known non-zero values instead, then there are non-trivial solutions.
Catégories
En savoir plus sur Mathematics dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!