我有这两个方程:
y1=a*(10/11- (3*i)/4) + b*(5/6+ (7*i)/5)
y2= -1+(j*2)
其中: y1=y2 ,我想仅使用MATLAB 找到“a”和“b”的确切值。
我应该使用任何 MATLAB 命令来求解这两个方程吗?
ps:我尝试使用solve
命令,但它没有给我任何答案:
syms a b
y1=a*(10/11- (3*i)/4) + b*(5/6+ (7*i)/5);
y2= -1+(j*2);
s=solve('y1-y2=0',[a b])
它给了我这个:
Warning: Explicit solution could not be found.
> In solve at 160
s =
[ empty sym ]