Please solve this linear equation system by using matrix man

Please solve this linear equation system by using matrix manipulation with up to 5 lines of code (we talked about this in class) F_1 sin (36.87degree) = -2000 F_1 cos(36.87degree) + F_2 = 0 F-3 + F_1 sin (36.87degree) = 0 F_4 - F_1 cos (36.87degree) = 0 -F_3 - F_5 sin (36.87degree) = 3000 F_6 + F_5 cos (36.87degree) - F_2 = 0 F_5 sin (36.87degree) + F_7 = 0

Solution

code:--

a=[sind(36.87) 0 0 0 0 0 0;cosd(36.87) 1 0 0 0 0 0;sind(36.87) 0 1 0 0 0 0;(-cosd(36.87)) 0 0 1 0 0 0;0 0 -1 0 -sind(36.87) 0 0; 0 -1 0 0 cosd(36.87) 1 0;0 0 0 0 sind(36.87) 0 1];
b=[-2000;0;0;0;3000;0;0];
f=inv(a)*b

result:--

f =

1.0e+03 *

-3.3333
2.6667
2.0000
-2.6667
-8.3333
9.3333
5.0000

comments:

in the first step dicribe all the equations:

in the form of a11x1+a12x2+........+a1nxn=b1;

all seven equation in the same form

them represent the equations in the form of matrix as AX=B;

then write code separate A matrix and B matrix;

then X=inv(A)*B;

here x is f

 Please solve this linear equation system by using matrix manipulation with up to 5 lines of code (we talked about this in class) F_1 sin (36.87degree) = -2000

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site