How to solve a matrix with increments

%1.152T1 - 1.152T2 = -50974.255 sinx %1.536T1 + 1.536T2 = 50974.255 cosx
a = [1.152 -1.152 1.536 1.536 ]; x = 0:5:60 b = [-50974.255*sin(x*(pi/180)) 50974.255*sin(x*(pi/180))]*
T = inv(a)*b
my expression is incorrect or incomplete

 采纳的回答

Your code turned into valid MATLAB syntax:
%1.152T1 - 1.152T2 = -50974.255 sinx
%1.536T1 + 1.536T2 = 50974.255 cosx
a = [1.152 -1.152;
1.536 1.536 ];
x = 0:5:60;
b = [-50974.255*sin(x*(pi/180));
50974.255*cos(x*(pi/180))];
T = a\b;
I replaced inv with \, and replaced the last sin with cos.

更多回答(0 个)

类别

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by