Write a MATLAB code for the following
In civil engineering, matrices are used to solve many simultancous linear equations. simple example is to obtain member forces and reactions in a statically determinate truss. For the truss shown below, there are six unknowns, the member forces F,, F2, and Fs as well as the reactions H2, Va, and V. The vertical point load at joint 1 is named PV. To solve for the member forces and reactions due to load PV1, the following simultaneous equations are obtained from structural analysis: -0.866 + 0.55 = 0 -0.5F,0.866 = PV1 0866F, + F2 + H2-0 0.5F, + = 0 0.866F, +V You are asked to solve these simultaneous equations in MATLAB. To do so, form the simultancous equations into [Altx) (B), where [A] is a 6x6 matrix of the coefficients, (x) s a 6x1 vector of the unknowns, and {B) s a 6x1 vector of the right hand side values. 30* 60 H2 V. Figure for Question 2 a) Make a MATLAB code to solve for these six unknowns for a range of PV, from 250 to 1.250 lb with an increment of 10 lb. Use the loop structure. However, stop the loop if the value of F2 exceeds 430 lb and the value of V2 exceeds 200 lb. Present the results only for this casoe. In civil engineering, matrices are used to solve many simultancous linear equations. simple example is to obtain member forces and reactions in a statically determinate truss. For the truss shown below, there are six unknowns, the member forces F,, F2, and Fs as well as the reactions H2, Va, and V. The vertical point load at joint 1 is named PV. To solve for the member forces and reactions due to load PV1, the following simultaneous equations are obtained from structural analysis: -0.866 + 0.55 = 0 -0.5F,0.866 = PV1 0866F, + F2 + H2-0 0.5F, + = 0 0.866F, +V You are asked to solve these simultaneous equations in MATLAB. To do so, form the simultancous equations into [Altx) (B), where [A] is a 6x6 matrix of the coefficients, (x) s a 6x1 vector of the unknowns, and {B) s a 6x1 vector of the right hand side values. 30* 60 H2 V. Figure for Question 2 a) Make a MATLAB code to solve for these six unknowns for a range of PV, from 250 to 1.250 lb with an increment of 10 lb. Use the loop structure. However, stop the loop if the value of F2 exceeds 430 lb and the value of V2 exceeds 200 lb. Present the results only for this casoe