请教一个matlab解参数方程组的问题
问题描述:
请教一个matlab解参数方程组的问题
七个未知数(a,b,c,d,e,f,g),七个方程,求g的表达式(X,Y,Z,k1,k2,k3,k4都是参数):
a+d+f+g = X
b+d+e+g = Y
c+e+f+g = Z
d = k1 * a * b
e = k2 * b * c
f = k3 * a * c
g = k4 * a * b * c
答
function bdSolve()clc;clear all;syms X Y Z k1 k2 k3 k4 a b c d e f g; X = a+d+f+g;Y = b+d+e+g;Z = c+e+f+g;k1 = d/(a*b);k2 = e/(b*c);k3 = f/(a*c); k4 = g/(a*b*c); solve(X,Y,Z,k1,k2,k3,k4,'a,b,c,d,e,f,g...