Solving two equations with two unknowns

1 次查看(过去 30 天)
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

回答(1 个)

Walter Roberson
Walter Roberson 2012-1-26
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.

类别

Help CenterFile Exchange 中查找有关 Linear Algebra 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by