matlab解三元一次符号方程组,出不来需要的结果.[B1 B2 B3]=solve('(m1*s^2+(c1+c2)*s+k1+k2)*B1+(-c2*s-k2)*B2+(-c2*s-k2)*B3=F','(-c2*s-k2)*B1+(m1*s^2+(c1+c2)*s+k1+k2)*B2+(c2*s+k2)*B3=F','(-c2*s-k2)*B1+(c2*s+k2)*B2+(m2*s^2+c2*s+k2)*B3=0')
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/23 15:07:23
matlab解三元一次符号方程组,出不来需要的结果.[B1 B2 B3]=solve('(m1*s^2+(c1+c2)*s+k1+k2)*B1+(-c2*s-k2)*B2+(-c2*s-k2)*B3=F','(-c2*s-k2)*B1+(m1*s^2+(c1+c2)*s+k1+k2)*B2+(c2*s+k2)*B3=F','(-c2*s-k2)*B1+(c2*s+k2)*B2+(m2*s^2+c2*s+k2)*B3=0')
matlab解三元一次符号方程组,出不来需要的结果.
[B1 B2 B3]=solve('(m1*s^2+(c1+c2)*s+k1+k2)*B1+(-c2*s-k2)*B2+(-c2*s-k2)*B3=F','(-c2*s-k2)*B1+(m1*s^2+(c1+c2)*s+k1+k2)*B2+(c2*s+k2)*B3=F','(-c2*s-k2)*B1+(c2*s+k2)*B2+(m2*s^2+c2*s+k2)*B3=0')
求的是B1,B2,B3的表达式.
matlab解三元一次符号方程组,出不来需要的结果.[B1 B2 B3]=solve('(m1*s^2+(c1+c2)*s+k1+k2)*B1+(-c2*s-k2)*B2+(-c2*s-k2)*B3=F','(-c2*s-k2)*B1+(m1*s^2+(c1+c2)*s+k1+k2)*B2+(c2*s+k2)*B3=F','(-c2*s-k2)*B1+(c2*s+k2)*B2+(m2*s^2+c2*s+k2)*B3=0')
后面加上未知量的限定就好啦:
[B1 B2 B3]=solve('(m1*s^2+(c1+c2)*s+k1+k2)*B1+(-c2*s-k2)*B2+(-c2*s-k2)*B3=F','(-c2*s-k2)*B1+(m1*s^2+(c1+c2)*s+k1+k2)*B2+(c2*s+k2)*B3=F','(-c2*s-k2)*B1+(c2*s+k2)*B2+(m2*s^2+c2*s+k2)*B3=0','B1','B2','B3')
B1 =
F/(m1*s^2+s*c1+k1)
B2 =
F/(m1*s^2+s*c1+k1)
B3 =
0