不太确定求解函数在 matlab 中是如何工作的?我试图求解以下符号方程,当我定义不同的参数时,它给出了 x 和 y 值交换的结果:
T = [0.3, 1.4, 10; 1.3, 0.4, 15; 0.02, 0.01, 1];
syms x y j i
q1 = (T(1,1)*x+T(1,2)*y+T(1,3))/(T(3,1)*x+T(3,2)*y+T(3,3))-j;
q2 = (T(2,1)*x+T(2,2)*y+T(2,3))/(T(3,1)*x+T(3,2)*y+T(3,3))-i;
[x,y] = solve(sym(q1),sym(q2),x,y);
x =
(50*j - 260*i + 3400)/(5*i + j - 340)
y =
(20*i - 200*j + 1700)/(5*i + j - 340)
T = [0.3, 1.4, 10; 1.3, 0.4, 15; 0.02, 0.01, 1];
syms j i jj ii
q1 = (T(1,1)*j+T(1,2)*i+T(1,3))/(T(3,1)*j+T(3,2)*i+T(3,3))-jj;
q2 = (T(2,1)*j+T(2,2)*i+T(2,3))/(T(3,1)*j+T(3,2)*i+T(3,3))-ii;
[j,i] = solve(sym(q1),sym(q2),j,i);
j =
(20*ii - 200*jj + 1700)/(5*ii + jj - 340)
i =
(50*jj - 260*ii + 3400)/(5*ii + jj - 340)
任何建议都会有所帮助。谢谢!</p>