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 に答える