第1个回答 推荐于2017-11-26
>> syms a1 a2 c1 c2
%以下的值你自己改一下
aa1=1;
cc1=2;
aa2=3;
cc2=4;
[x5,y5]=solve('y5=a1*x5+c1','y5=a2*x5+c2','x5','y5');
xx5=subs(subs(subs(subs(x5,a1,aa1),a2,aa2),c1,cc1),c2,cc2)
yy5=subs(subs(subs(subs(y5,a1,aa1),a2,aa2),c1,cc1),c2,cc2)
%%%%%subs(表达式,变量,变量的值),就是将表达式里面的变量,用变量的值代进去。本回答被提问者采纳
第2个回答 2008-09-20
a1,c1,a2,c2的数值都知道,设为以下方程
>> [x5,y5]=solve('y5=1*x5+1','y5=2*x5+sqrt(3)','x5','y5')
x5 =
1-3^(1/2)
y5 =
2-3^(1/2)
>> x=eval(x5);y=eval(y5);
>> [x,y]
ans =
-0.7321 0.2679
>>