%write the unit vectors for unknown forces
eBx=[1,0,0];eBy=[0,1,0];eT=[-sin(30*pi/180),cos(30*pi/180),0];
%write the known force vectors
F=600*[-sin(30*pi/180),-cos(30*pi/180),0];
%write position vectors from point B to the line of action of each force
rBF=[-9,0,0];rBT=[-14,0,0];
%compute the moments produced by each force about point B
MT=cross(rBT,eT);MF=cross(rBF,F);
%Solve using Ax=b. Write vector b, which is a column vector made up of the scalars pulled to
%the right hand side of the equals sign. Note that my x = [Bx,By,T]. Each
%row is a different equilibrium equation (row 1 = Fx, row 2 = Fy, and row 3 = M).
b=-[F(1);F(2);MF(3)]
%write A, which is a 3x3 matrix made up of the coefficients of the
%Again, row 1=Fx, row 2=Fy, and row 3=M; column 1=coeff of Bx, column 2=coeff of By, column
%3=coeff of T)
A=[eBx(1),eBy(1),eT(1);eBx(2),eBy(2),eT(2);0,0,MT(3)]
%and solve
x=A\b