0

我可以求解方程组以获得“q”的精确值:

[A,B,C,Y]= solve('825*cos(A)+792*cos(B)-446.687*cos(C)=187.069','825*sin(A)+792*sin(B)-446.687*sin(C)=694.126','446.687*cos(C)-280.446*cos(2.778+B)=550','446.687*sin(C)-280.446*sin(2.778+B)=Y')

但我需要根据变量 q=121:10:501 的解决方案:

[A,B,C,Y]= solve('(q+704)*cos(A)+792*cos(B)-446.687*cos(C)=187.069','(q+704)*sin(A)+792*sin(B)-446.687*sin(C)=694.126','446.687*cos(C)-280.446*cos(2.778+B)=550','446.687*sin(C)-280.446*sin(2.778+B)=Y')
4

1 回答 1

0
i = 1;
for q = 121:10:501
    [A(i),B(i),C(i),Y(i)] = solve(['(',num2str(q),'+704)*cos(A)+792*cos(B)-446.687*cos(C)=187.069'],['(',num2str(q),'+704)*sin(A)+792*sin(B)-446.687*sin(C)=694.126'],'446.687*cos(C)-280.446*cos(2.778+B)=550','446.687*sin(C)-280.446*sin(2.778+B)=Y')
i = i+1;
end
于 2012-12-18T21:55:09.443 回答