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

 Accepted Answer

James Tursa
James Tursa on 5 May 2015
Edited: James Tursa on 5 May 2015
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.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!